American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7pm -Intro to python – Joshua

January 16 @ 7:00 pm - 8:00 pm

Today We Did:

  1. Reviewed the homework
  2. Brushed up on what functions are with/without return values
  3. Tried the Magic 8 ball
  4. worked with the library random for random choces
    1. random.randint(1,4)
    2. random.randchoice([“name”,”other_name”])

Homework:

In one new file, “Sep12_FunctionsRandom”, do the following:

  1. For the Magic 8 ball function, create another version with with random.randchoice instead
    1. hint, you may need to repalce those if,elif,else statements
    2. Link : https://www.ayclogic.com/intro-to-python/magic-8-ball/

Details

Date:
January 16
Time:
7:00 pm - 8:00 pm
Verified by MonsterInsights