Q. What is the purpose of the break statement in Python?

A
Continue to the next iteration
B
Exit a loop prematurely
C
Skip an iteration
D
Define a function
Solution:

The break statement terminates the innermost loop containing it and continues execution after the loop.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!