- This event has passed.
6 PM – Intro to Python – Joshua
July 11 @ 6:00 pm - 7:00 pm
Today We Did – For Loops and Range
- For Loops – How We navigate lists
- range() : How we can create Numeric Lists
- Three Inputs: range(starting number,last number in list +1, spacing)
- ex: range(2,9,2)=[2,4,6,8]
- Two Inputs: range(starting number, last number+1)
- you use two inputs if you know the spacing between numbers is 1
- ex range(3,7) = [3,4,5,6]
- One input range(last number +1)
- you use one input if you know the spacing between numbers is 1 and you want to start with zero
- ex. range(5) = [0,1,2,3,4]
- Three Inputs: range(starting number,last number in list +1, spacing)
Homework
- create a python code named july_18_range_homework
- Page 56 to 58: 9th week
- Upload your answer to google drive before next week Wednesday night.
If you have any questions feel free to email me jwidjanarko@ayclogic.com