Python Programming - Loops - Discussion
Discussion Forum : Loops - General Questions (Q.No. 3)
3.
What is the purpose of the else block in a Python
for
or while
loop?
Answer: Option
Explanation:
The
else
block in a loop is executed when the loop condition becomes False, and the loop naturally exits.
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