American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Python – Darin

September 21, 2023 @ 6:00 pm - 7:00 pm

What We Did Today:

  1. Reviewed the homework on formatting of a function
  2. Learnt how to generate random numbers and choose a random item from a list
  3. Created Magic 8 Ball text based mini-game


Create a new file called and submit to google drive when you finish.

  1. Recreate the Magic8Ball game but this time using random.choice() instead of random.randint()
  2. To use the random.choice() function, you have to give it a list as a parameter, so like random.choice(lst)
  3. Put the questions inside of the list and print out random.choice(lst)


If you have any questions, feel free to email me at


September 21, 2023
6:00 pm - 7:00 pm
Event Categories:
Verified by MonsterInsights