...

/

Introduction to Repetition Control Instructions

Introduction to Repetition Control Instructions

Learn about the different types of repetition control instructions in Python.

We'll cover the following...

Repetition control instructions help us repeat a set of statements in a program. There are two types of repetition control instructions:

  • The while loop
  • The for loop
Press + to interact
A flowchart describing repetition control instructions
A flowchart describing repetition control instructions

Note: Unlike many other languages, there is no do-while loop in Python. ...