KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

In Python, which keyword is used to terminate a loop immediately?

  1. exit
  2. return
  3. break
  4. continue

Python Control Flow

1 Like

Answer

break

Reason — The break keyword is used to terminate a loop immediately and transfer the control outside the loop.

Answered By

1 Like


Related Questions