- This event has passed.
4:30pm – Python OOP – Roland
April 11 @ 4:30 pm - 5:30 pm
Today We Did
- Reviewed Dictionaries and did Dictionary Practice
- How to add/insert into dictionary
- Getting items from dictionary
- dictionary.keys(), dictionary.values(), dictionary.items()
- Started Supermarket Project
- GroceryItem Class
- Created self.shopping_cart and added GroceryItems to the self.menu
- Main body of Application Loop finished
Homework
Implement the print_menu(self) function
This function should print out every item from our self.menu dictionary in the following manner
“Choice #{KEY} – {NAME} – ${PRICE}” for each item in the menu dictionary
Make sure to use a for loop! (check out the hint in the google drive files/notes if you need help)
If you have any questions, feel free to email me at rolandyang@ayclogic.com