Robotics & Artificial Intelligence

The function of the 'continue' and 'break' statements is the same.

Python Control Flow

1 Like

Answer

False

Reason — The break statement terminates the loop immediately and transfers the control outside the loop, whereas the continue statement skips the current iteration and transfers the control to the next iteration of the loop. Therefore, their functions are not the same.

Answered By

3 Likes


Related Questions