Computer Science, asked by prasannaprince21, 4 months ago

What is the difference between break and continue statement in Python? Explain giving

suitable example.​

Answers

Answered by Abhishek466430
6

Explanation:

Break statements exist in Python to exit or “break” a for or while conditional loop. ... In this example, the loop will break after the count is equal to 2. The continue statement is used to skip code within a loop for certain iterations of the loop. After the code is skipped, the loop continues where it left off.

Similar questions