« All Events
9AM – Intro to Python – Saagar
July 30, 2022 @ 9:00 am - 10:00 am
Today we did:
- Briefly reviewed list and indexing
- Introduced iterating/traversing through lists with for loops using the for each method as well as for loops (for <variable> in <list>:) with indexing using the range function (for <variable> in range(len(<list>)):)
- Combined for loops with if statements logic to traverse and print statements according to the current element in the list
- Reviewed at end of class with trivia style questions on for loops with if statements
Homework
- Create python file called “July30_ListHomework.py” and do Page 38 to 41: access, modify, append, remove. Also do TRY IT YOURSELF from page 42: 3-4, 3-5, 3-6.