Conditional Statements & Loops: While Loops in Python
Python
| Beginner
- 11 videos | 1h 19m 32s
- Includes Assessment
- Earns a Badge
While loops are one way to keep repeating a set of actions until a specific condition is met in Python. In this 11-video course, learners explore the use of while loops, considerations when implementing while loops, and use cases for while loops and for loops. Key concepts covered here include implementing a basic while loop and recognizing what conditions cause it to become an infinite loop; learning to use while loops to carry out actions while evaluating expressions based on numerical and string data; and examining while loops whose iterations depend on user input data. Next, learn syntax for defining while loops within a single line; learn to iterate over a list of elements with while loops; and learn to iterate over multiple lists and tuples with while loops. Learn when it is appropriate to use break keyword to stop a while loop, and learn to break out of a while loop and recognize use of the pass keyword within such loops. Finally, learn skip steps in individual iterations of a while loop using the continue statement.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseImplement a basic while loop and recognize what conditions can cause it to become an infinite loopUse while loops to carry out actions while evaluating expressions based on numerical and string dataDefine while loops whose iterations depend on user input dataRecall the syntax for defining while loops within a single lineIterate over a list of elements using while loops
-
Iterate over multiple lists and tuples using while loopsIdentify when it is appropriate to use the break keyword to stop a while loopUse the break statement in multiple scenarios to break out of a while loop and recognize the use of the pass keyword within such loopsSkip steps in individual iterations of a while loop using the continue statementCompare while loops and for loops and implement a while loop which terminates only when the user enters a specific input
IN THIS COURSE
-
2m 23s
-
9m 22sIn this video, you will implement a basic while loop and recognize what conditions can cause it to become an infinite loop. FREE ACCESS
-
4m 18sIn this video, you will learn how to use while loops to carry out actions while evaluating expressions based on numerical and string data. FREE ACCESS
-
6m 21sFind out how to define while loops that depend on user input data. FREE ACCESS
-
8m 24sAfter completing this video, you will be able to recall the syntax for defining while loops on a single line. FREE ACCESS
-
8m 46sFind out how to iterate over a list of elements using a while loop. FREE ACCESS
-
9m 8sFind out how to iterate over multiple lists and tuples using for loops. FREE ACCESS
-
9m 55sDuring this video, you will learn how to identify when it is appropriate to use the break keyword to stop a while loop. FREE ACCESS
-
8m 36sDuring this video, you will learn how to use the break statement in multiple scenarios to break out of a while loop, and recognize the use of the pass keyword within such loops. FREE ACCESS
-
6m 21sIn this video, learn how to skip steps in individual iterations of a while loop using the continue statement. FREE ACCESS
-
5m 57sIn this video, you will learn how to compare while loops and for loops and implement a while loop which terminates only when the user enters a specific input. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.