Starting on page 84 in our Chapter 8, read about using the two commands 'break' and 'continue' and how they can be used to change the flow.
Download my "Fav Day.py" program out of the examples folder on Drive.
Change the code so it does two different things, separately (each one of these can be a separate program):
- When you get to your favorite day, the loop stops. [the last thing it prints is your favorite day]
- It SKIPS printing your favorite day
Call it FavDayA.py and FavDayB.py
Good luck!
No comments:
Post a Comment