CBSE Class 11 Computer Science Question 23 of 80

Conditional and Looping Constructs — Question 6

Back to all questions
6
Question

Question 6

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

  1. do-while
  2. while
  3. for
  4. All of these
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.