- This event has passed.
3 PM – Intro To Python (Summer Session) – Darin
June 20 @ 3:00 pm - 5:00 pm
What We Did Today:
- Reviewed functions with/without return values
- Learnt about the random module.
- Learnt how to get a random integer using random.randint()
- Learnt how to get a random item from a list using random.choice()
Homework:
Create a file named June20_Magic8BallV2.py in Thonny as shown, and upload it into the google drive when finished:
- Homework:
Recreate the magic 8 ball program, but using random.choice() instead of random.randint().
You will have to create a list containing the possible answers for this.
Notes:
If you have any questions, you can email me at ddjapri@ayclogic.com!!
Label the numbers in your python files!