- This event has passed.
7PM – Intro to Python – Joshua Widjanarko
October 17 @ 7:00 pm - 8:00 pm
Today We Did
- For Loops: how we access across an entire a list
- Don’t forget to indent! All code you want to be looped/repeated should be one indent more than the for loop and right under it
- Another Reminder, the code under if/else statements need an additional indent
- Structure for a For loop is -> for a in name_of_list:
- Alternately, you can use a range to create a list of position (Ex. range(2) =[0,1])
- Don’t forget to indent! All code you want to be looped/repeated should be one indent more than the for loop and right under it
- range(len(name_of_list)) vs using just name_of_list
- Use range when you need the position later
- Note, you will be using name_of_list[0] to access inside the list with range
- Use range when you need the position later
- For Loops: how we access across an entire a list
Homework and Reminders
- copy pages 54 and 55 and the try it yourself on pg 56 (4-1/4-2)
- Name it For_loop_practice_october_17.py
- Upload your answer to google drive before next week Wednesday night
If you have any questions feel free to email me jwidjanarko@ayclogic.com