Break Out of the Pattern (Exercise)
00:00 Let’s go. Here is another review exercise to keep training your neural pathways for control flow in Python programs. This one is called Break Out of the Pattern.
00:11
The task is that you should use the break
keyword to write a program that repeatedly asks the user for some input and quits only if the user enters "q"
or "Q"
, so lowercase q or uppercase Q.
00:23 Give it a try, and then you can watch me code up a solution in the next lesson.
Become a Member to join the conversation.