- This event has passed.
5 PM – Intro to Python – William
January 27 @ 5:00 pm - 6:00 pm
Today We Did
- Reviewed Jan20_FunctionsHW5.py
- Functions with return values
- Learned about the random module in Python
- random.randint() — choose random integer
- random.choice() — choose random item from list
Homework
Work on the following files:
- Jan20_FunctionsHW5.py
- Finish Exercise #3:
- Write a function called
count
that takes a number as input and prints a countdown from 1 to that number. For example, callingcount(5)
should print:1 2 3 4 5
- Write a function called
- Finish Exercise #3:
- Magic8Ball.py
- Follow the instructions here! https://www.ayclogic.com/intro-to-python/magic-8-ball/
If you have any questions, please email me at williamsmith@ayclogic.com.