KnowledgeBoat Logo

Computer Science

In which cases, the else clause of a loop does not get executed?

Python Control Flow

8 Likes

Answer

The else clause of a loop does not get executed if the loop is terminated due to the execution of a break statement inside the loop.

Answered By

5 Likes


Related Questions