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, calling count(5)
should print:1
2
3
4
5
- 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.