KnowledgeBoat Logo
|

Informatics Practices

The else block for a loop executes only in the case of normal termination of the loop.

Python Control Flow

1 Like

Answer

True

Reason — In Python, the else block associated with a for loop is executed when the loop terminates normally, meaning it has iterated over all items or reached its termination condition.

Answered By

2 Likes


Related Questions