Control Structure II

Loop Operations

In programming, loops function to instruct the computer to perform actions repeatedly. There are two types of loops in the Python programming language: the while loop and the for loop. The for loop is referred to as a counted loop, while the while loop is called an uncounted loop. The difference is that the for loop is typically used to repeat code a known number of times, whereas the while loop is used for iterations that depend on a condition, with an indeterminate number of repetitions.

MODULE

Download Module 4