The Python While Loop

Опубликовано: 14 Май 2026
на канале: Danny Hardin
123
1

The Python for loop is designed to work with lists. As such it is generally the loop of first choice with programmers. However, certain problems do not lend themselves to solution with the for loop. In particular if there is a problem where the number of passes trough the loop is not known then the while loop is often a better choice. This video introduces the while loop and provides several examples.