Python | for loop quiz | Question 21

Last Updated :
Discuss
Comments

What is the purpose of the else clause in a for loop?

To execute an alternative block of code

To handle exceptions

To specify the step size of the loop

To execute code when the loop is terminated normally

Share your thoughts in the comments