American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6pm – Intro To Python – Joshua Widjanarko

September 12 @ 6:00 pm - 7: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/

 

NOTES:

If you have any questions feel free to email me jwidjanarko@ayclogic.com 

Details

Date:
September 12
Time:
6:00 pm - 7:00 pm
Verified by MonsterInsights