Uploaded June 2021 | Updated November 2026, 3 hours ago
This is the eighth in a course of computer science video lessons introducing programming with Python. It covers the while loop, which can be used to make a line of code, or several lines of code, execute repeatedly. This demonstrates a fundamental programming concept known as iteration. You will see how to control the number of times the code inside a while loop repeats by means of a variable, and how to write an infinite loop, in which the code repeats forever or until a break command is encountered. Some applications you will see include counting up or down, prompting a user continuously until the desired input is entered and generating times tables.
This is the eighth in a course of computer science video lessons introducing programming with Python. It covers the while loop, which can be used to make a line of code, or several lines of code, execute repeatedly. This demonstrates a fundamental programming concept known as iteration. You will see how to control the number of times the code inside a while loop repeats by means of a variable, and how to write an infinite loop, in which the code repeats forever or until a break command is encountered. Some applications you will see include counting up or down, prompting a user continuously until the desired input is entered and generating times tables.










