American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro to Python

July 29, 2020 @ 7:00 pm - 8:00 pm

  1. We went over the functions homework.
  2. We learned about how functions can “return” a value.
  3. Your homework is to expand the functionality of RandomPassword:
    1. Create a new function generate_random_password() which combines the result of “get_adjective”, “get_action”, “get_noun”, and “get_number” and creates a random password like “smartswimhouse552”.
    2. Test generate_random_password, and make sure it works as expected.
    3. Get input from the user asking “How many passwords do you want?”, and store this result in a variable number_passwords.
    4. Print out random passwords number_passwords times.

Details

Date:
July 29, 2020
Time:
7:00 pm - 8:00 pm