Robotics & Artificial Intelligence

Which of the following is not used as loop in Python?

  1. for loop
  2. while loop
  3. do-while loop
  4. All of them

Python Control Flow

1 Like

Answer

do-while loop

Reason — Python does not support do-while loop as a built-in looping construct. Only for loop and while loop are used to perform iterative tasks in Python.

Answered By

1 Like


Related Questions