Python Programming - Loops - Discussion
Discussion Forum : Loops - General Questions (Q.No. 11)
11.
What does the
else block in a for loop execute when the loop completes without encountering a break statement?
Answer: Option
Explanation:
The
else block in a for loop is executed when the loop completes its iterations normally, without encountering a break statement.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers