Robotics & Artificial Intelligence

In Python, 'continue' and 'pass' keywords are interchangeable.

Python Control Flow

1 Like

Answer

False

Reason — The continue statement is used to skip the current iteration of a loop and transfer the control to the beginning of the loop for the next iteration, whereas the pass statement is a null statement that does nothing and is used only as a placeholder to make the code syntactically correct. Therefore, the continue and pass keywords are not interchangeable.

Answered By

2 Likes


Related Questions