Python Development: Working with If Statements, Loops, & Comprehensions

Python 3.6+
  • 13 Videos | 1h 45m 56s
  • Includes Assessment
  • Earns a Badge
A handy procedure in Python for controlling the execution order of program statements is to implement branching operations using conditional statements, such as 'if' and 'else'. In this course, you'll learn how to use statements, loops, and comprehensions. First, you'll implement the conditional if statement. Then you'll use the else and elif statements. Moving on, you'll use Python's looping constructs, including the for-loop to iterate over elements in complex data types as well as over lists, tuples, and dictionaries. You'll use the while-loop and the break, continue, and pass keywords to further control loop execution. Finally, you'll implement list comprehension in Python, an elegant and efficient way of generating lists using 'for loops.' When you're finished with this course, you'll be able to write conditional statements in your code and perform looping and branching operations using for and while loops.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    implement branching code blocks using if statements
    implement branching using else blocks and ternary if expressions
    implement branching using elif blocks
    iterate over sequences using for loops
    iterate over dictionaries using for loops
    use nested for loops for multiple looping operations
  • perform looping operations using while loops
    control loop iteration using break, continue, and pass
    generate lists using list comprehension
    generate lists using if conditions within list comprehension
    implement generator and dictionary comprehension
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 40s
    UP NEXT
  • Playable
    2. 
    Performing Conditional Branching with If Statements
    9m 51s
  • Locked
    3. 
    Using Ternary If Statements in Python
    6m 32s
  • Locked
    4. 
    Using Elif Blocks for Multiple Python Branches
    6m 57s
  • Locked
    5. 
    Iterating over Sequences Using for Loops in Python
    9m 57s
  • Locked
    6. 
    Using for Loops to Iterate over Python Dictionaries
    9m 31s
  • Locked
    7. 
    Creating Nested for Loops in Python
    11m 30s
  • Locked
    8. 
    Working with While Loops in Python
    8m 44s
  • Locked
    9. 
    Using Break, Continue, and Pass in Python
    11m 14s
  • Locked
    10. 
    Creating Python Lists Using List Comprehension
    9m 33s
  • Locked
    11. 
    Using Python If Statements Within List Comprehension
    9m 24s
  • Locked
    12. 
    Implementing Generator and Dictionary Comprehension
    7m 9s
  • Locked
    13. 
    Course Summary
    2m 56s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.