Informatics Practices

Which of the following is not a loop statement in Python?

  1. do-while
  2. while
  3. for
  4. All of these

Python Control Flow

2 Likes

Answer

do-while

Reason — In Python, the do-while loop statement does not exist. The language provides only two primary loop constructs: the for loop and the while loop, which are used to handle different looping requirements.

Answered By

2 Likes


Related Questions