Loops

Let’s learn about different kinds of loops and the range( ) function.

Loops allow us to repeatedly execute sets of statements for as long as a given condition remains True. There are two kinds of loops in Python— for and while.

Get hands-on with 1200+ tech skills courses.