- This event has passed.
6 PM Python Level 1
November 15, 2019 @ 6:00 pm - 7:00 pm
- We reviewed the quiz
- Homeworks:
- 1st homework:
- Create a list of boy_names = ‘Mark’, ‘Matthew’, ‘Luke’, ‘John’
- Create a list of girl_names = ‘Abigail’, ‘Mary’, ‘Martha’, ‘Eunice’
- Create a function, favorite_boys_name, 1 parameter (gender).
- when this function is called,
- if gender == ‘boy’, return a random boy name from the list above
- if gender == ‘girl’, return a random girl name from the list above
- if gender is everything else, return “invalid selection”.
- print the name to the shell.
- 2nd Homework:
- Create a list with a random 10 nouns.
- Create a function that would return a random noun from the above list.
- 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
- 1st homework: