American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7:30 PM – Intro To Python

August 26, 2020 @ 7:30 pm - 8:30 pm

  1. We finished with Function with and without return value.
  2. We learned how to use python random module.
  3. We started password generator program.
  4. Homework:
    1. Inside the Aug26_PasswordGenerator.py
    2. Create a function with return value “get_action”, no parameter
      1. Inside the function create a list, “actions”, with the following elements: “swimming”, “jumping”, “running”, “flying”, “burning”
      2. Use random module, to return a random action from the list.
      3. return the random action.
    3. Create a function with return value “get_fantasy_animal”, no parameter
      1. create a list, “animals”: “dragon”, “hydra”, “gorgon”, “kraken”, “pegasus”, “unicorn”
      2. use random module, to return a random animal from the list.
      3. return the random animal
    4. the homework is very similar to what we did in the class which is the “get_adjective” function.

Details

Date:
August 26, 2020
Time:
7:30 pm - 8:30 pm
Event Categories:
,