American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

3 PM – Intro To Python (Summer Session) – Darin

June 20 @ 3:00 pm - 5:00 pm

What We Did Today:

  1. Reviewed functions with/without return values
  2. Learnt about the random module.
  3. Learnt how to get a random integer using random.randint()
  4. 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:

  1. 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!

Details

Date:
June 20
Time:
3:00 pm - 5:00 pm
Event Categories:
,
Verified by MonsterInsights