- This event has passed.
7pm -Intro to python – Joshua
January 16 @ 7:00 pm - 8: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/