- This event has passed.
7 PM – Intro to Python – Isaac
June 16 @ 7:00 pm - 8:00 pm
Today, we
- Reviewed printing lists with for loop
- Reviewed printing numbers with while loop and +=
- Use while loop to make a “say quit to stop” loop
- Break to stop infinite loop
- Ask user for their age until they say quit
- Append all even or odd numbers to a list
- For loops with strings
Homework
- Copy code from pages 57 to 58 of the textbook. Save it to a file called June_16_for_loop_range_homework.py
- Copy code from pages 117 to 121 of the textbook. (Page 117 starts at “Introducing while loops”). Save it to a file called June_16_while_loop_homework.py
- Try It Yourself on page 123 (7-4, 7-5, 7-6, 7-7). Also save it to June_16_while_loop_homework.py