- This event has passed.
3PM Python Level 2
May 18, 2019 @ 3:00 pm - 4:00 pm
- We went over the Test result.
- We improved FoodRecommendation program
- We make the program not case sensitive so it will accept ‘ChIneSe’ for instance.
- We make the program able to detect duplication.
- Homework:
- Create a python file ‘May18_Homework_Dictionary.py’
- Create an empty dictionary called “food_prices”.
- Add the following data to the food_prices dictionary:
- “Chow Mien” : 10
- “Ca Kai Fan”: 9
- “Lo Mai Kai”: 5
- “Ca Siu”: 11
- Print the price of “Chow Mien” to the shell using “food_prices” dictionary.
- Print the price of “Ca Siu” to the shell using “food_prices” dictionary.
- Create a python file ‘May18_Homework_Dictionary.py’