CBSE Class 11 Informatics Practices Question 74 of 75

Conditional and Looping Constructs — Question 10

Back to all questions
10
Question

Question 10

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

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.