Quiz: Break the Loop

Quiz yourself on using break and continue to control loops in Python.

We'll cover the following...

In the last lesson, you learned how to control your loops with even more precision using break and continue. You practiced breaking out of a loop when a condition is met, and skipping specific loop iterations while keeping the rest running. This gives your code flexibility to handle real-world input and unexpected user actions.

Now, check your understanding with a quick quiz!

Technical Quiz
1.

What does the break keyword do inside a loop?

A.

Repeats the current loop iteration.

B.

Skips the current loop iteration.

C.

Exits the loop immediately.


1 / 3

Nice going! You’ve learned how to exit loops early with break and skip specific steps with continue—making your programs smarter and more interactive.

What’s next?

Now it’s time to practice your new loop-control skills! In this hands-on project, you’ll create a loop that:

  • Keeps asking for words.

  • Skips blank inputs.

  • Stops completely when the user types "bye".

This challenge will help you combine break and continue in a practical, real-world style interaction. Let’s take full control of our loops!