- This event has passed.
6 PM – Intro to Python – Darin
July 27, 2023 @ 6:00 pm - 7:00 pm
What We Did Today:
- Reviewed homework for animal_list, understanding how to use if statements inside of for loops (reviewing how to add items to a list)
- Understanding how to use for loop with the range() function
- Understanding that range() function only takes in an integer
- Get input from shell to specify how many times we want to loop
Homework:
- Create python file named ForLoopRangeHW.py and when finished upload to google drive
- Page 56 try it yourself 4-1 and 4-2 (this is just a review of what we learnt already)
- Page 60 try it yourself 4-3 and 4-4
- Email me at ddjapri@ayclogic.com if you have any questions, especially for try it yourself 4-4 which can be confusing
Note:
For the try it yourself 4-4, you would have to start by creating an empty list and then using the .append method in a for loop of range 1 million