- This event has passed.
7PM – Intro to Python – Joshua Widjanarko
November 7 @ 7:00 pm - 8:00 pm
Today We Did – While Loops
- While Loops is how we can repeat code without navigating through a list
- while <conditional/boolean>
- when the conditional or boolean is True, the loop will repeat indented code until it fails
- the break function is how we can end a while loop
- DANGER: without a way to either turn the conditional to false or a break, while loops can go on for infinity.
- counters can be used for while loops to only occur a certain number of times
- count =0
- while count<=10
- count+=1
- While Loops is how we can repeat code without navigating through a list
Homework
- Create a file and name it November_7_WhileLoopHw.py and do Try It Yourself 7-4, 7-6 on page 123
- Create a file and name it November_7_ReviewHW.py and do these problems https://www.ayclogic.com/intro-to-python-exercises/
- Upload your answer to google drive before next week Wednesday night.
If you have any questions feel free to email me jwidjanarko@ayclogic.com