- This event has passed.
6pm – Intro To Python – Joshua Widjanarko
September 12 @ 6:00 pm - 7:00 pm
Today We Did:
- Reviewed the homework
- Brushed up on what functions are with/without return values
- Tried the Magic 8 ball
- worked with the library random for random choces
- random.randint(1,4)
- random.randchoice([“name”,”other_name”])
Homework:
In one new file, “Sep12_FunctionsRandom”, do the following:
- For the Magic 8 ball function, create another version with with random.randchoice instead
- hint, you may need to repalce those if,elif,else statements
- Link : https://www.ayclogic.com/intro-to-python/magic-8-ball/
NOTES:
If you have any questions feel free to email me jwidjanarko@ayclogic.com