American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro to Python

July 15, 2020 @ 7:00 pm - 8:00 pm

  1. Today we went over quiz 1, congrats to everyone for doing so well!
  2. We learned about random module.
  3. We started implementing Magic8Ball.
  4. Your homework is to refactor Magic8Ball to use the “random.choice” function rather than “random.randint” function:
    1. Create a list of answers
    2. Select a random answer by using random.choice with the answers as a parameter.
    3. Print the random answer.
    4. Make sure that you can run “Magic8Ball.py” and it still has the same functionality as before.

Details

Date:
July 15, 2020
Time:
7:00 pm - 8:00 pm