Today, we
- Used while loops to print out a series of numbers
- Used while loops to make a loop that repeats until the user says “quit”
- Method 1: while message != “quit”
- Method 2: while active, and then set active to False to exit
- Method 3: while True, and then use break to exit
- Learned about forever loops
- Did a quick exercise to write a while loop with one of the methods we learned
- Learned about putting code in while loops to repeat it
Homework
- Do the exercises from https://www.ayclogic.com/intro-to-python-exercises/
- We will review these exercises next week, and then your first quiz will be the week after that. Don’t worry if you get stuck because I can help explain it next week.
If you have any questions, feel free to email me at isaac@ayclogic.com.