Multiple choice

Which statement is used for iteration?

  1. if

  2. while

  3. when

  4. elif

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The 'while' statement is a control structure used for iteration, meaning it repeats a block of code as long as a specified condition remains true.