« All Events
6 PM – Python OOP – Gamas
October 19, 2022 @ 6:00 pm - 7:00 pm
Today We Did
- We reviewed Phone Book Dictionary homework.
- We learned how to loop through every element inside List.
Homework
- Change RobuxShoppingCart project (the one from Intro To Python class) to use dictionaries. If you don’t have this program, you can download from google drive (Aug10_RobuxSystem.py). This is very similar to what we did with ShoppingCart using dictionary. Look at Oct5_GroceryShoppingCartV2.py for reference. If you don’t have this file, it should be in the google drive.
- Basically you have to use 2 dictionaries one to store the name of the item and another one to store the price of the item.
- And then use these 2 dictionaries inside while loop to replace the hardcoded item name and price.
- If you don’t do your homework last week or 2 weeks ago, please submit your homeworks.