American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro to Python – William

January 27 @ 5:00 pm - 6:00 pm

Today We Did
  1. Reviewed Jan20_FunctionsHW5.py
    1. Functions with return values
  2. Learned about the random module in Python
    1. random.randint() — choose random integer
    2. random.choice() — choose random item from list
Homework

Work on the following files:

  1. Jan20_FunctionsHW5.py
    1. Finish Exercise #3:
      1. Write a function called count that takes a number as input and prints a countdown from 1 to that number. For example, calling count(5) should print:
        1
        2
        3
        4
        5
  2. Magic8Ball.py
    1. Follow the instructions here! https://www.ayclogic.com/intro-to-python/magic-8-ball/

If you have any questions, please email me at williamsmith@ayclogic.com.

Details

Date:
January 27
Time:
5:00 pm - 6:00 pm
Event Categories:
,
Verified by MonsterInsights