American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM Python Level 1

November 15, 2019 @ 6:00 pm - 7:00 pm

  1. We reviewed the quiz
  2. Homeworks:
    1. 1st homework:
      1. Create a list of boy_names = ‘Mark’, ‘Matthew’, ‘Luke’, ‘John’
      2. Create a list of girl_names = ‘Abigail’, ‘Mary’, ‘Martha’, ‘Eunice’
      3. Create a function, favorite_boys_name, 1 parameter (gender).
      4. when this function is called,
      5. if gender == ‘boy’, return a random boy name from the list above
      6. if gender == ‘girl’, return a random girl name from the list above
      7. if gender is everything else, return “invalid selection”.
      8. print the name to the shell.
    2. 2nd Homework:
      1. Create a list with a random 10 nouns.
      2. Create a function that would return a random noun from the above list.
    3. Download Thonny if you don’t have it in your computer: https://github.com/thonny/thonny/releases/download/v3.2.3/thonny-3.2.3.exe

Details

Date:
November 15, 2019
Time:
6:00 pm - 7:00 pm