Which statement is used to exit a loop prematurely?
-
A
continue
-
B
break
Correct answer
-
C
pass
-
D
return
13 views
Explanation
break terminates the loop immediately. Source: Standard Python content (FBISE-aligned).
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ