Skip to content
open roadmaps
All Roadmaps
Practice Mix
Docker
Linux & CLI
Data Structures & Algorithms
Git
Python
JavaScript
SQL
Web basics
Home
/
Python
/
Loop Control Statements
/ Test
Loop Control Statements Test
Question 1 of 4
When does a loop's `else` clause execute in Python?
1.
Only when the loop finishes all iterations naturally without being interrupted by a `break` statement.
2.
Whenever the loop hits a `break` statement.
3.
Every time an iteration completes successfully.
4.
Only if an uncaught exception is thrown inside the loop.
Tip: Press 1-4 on keyboard to select.
Check Answer