Python Development: Working with If Statements, Loops, & Comprehensions
Python 3.6+
| Beginner
- 13 Videos | 1h 45m 18s
- 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 courseimplement branching code blocks using if statementsimplement branching using else blocks and ternary if expressionsimplement branching using elif blocksiterate over sequences using for loopsiterate over dictionaries using for loopsuse nested for loops for multiple looping operations
-
perform looping operations using while loopscontrol loop iteration using break, continue, and passgenerate lists using list comprehensiongenerate lists using if conditions within list comprehensionimplement generator and dictionary comprehensionsummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 37sUP NEXT
-
2.Performing Conditional Branching with If Statements9m 48s
-
3.Using Ternary If Statements in Python6m 29s
-
4.Using Elif Blocks for Multiple Python Branches6m 54s
-
5.Iterating over Sequences Using for Loops in Python9m 54s
-
6.Using for Loops to Iterate over Python Dictionaries9m 28s
-
7.Creating Nested for Loops in Python11m 27s
-
8.Working with While Loops in Python8m 41s
-
9.Using Break, Continue, and Pass in Python11m 11s
-
10.Creating Python Lists Using List Comprehension9m 30s
-
11.Using Python If Statements Within List Comprehension9m 21s
-
12.Implementing Generator and Dictionary Comprehension7m 6s
-
13.Course Summary2m 53s
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.