- This event has passed.
7 PM – Python OOP
October 29, 2021 @ 7:00 pm - 8:00 pm
Today We Do
- We went over how to use Python dictionary properly.
- We use Python dictionary to list all teachers using for loop.
- When finding teacher using dictionary, when the requested name does not exists in the dictionary, print “<name> does not exists in the system”
- We made find teacher using dictionary, not case sensitive.
- We started SupermarketInheritance project
Homework
- Transfer codes from Aug27_ShoppingCartDictionary.py into SuperMarketInheritance project. Specifically inside SupermarketSystem.py. Look at SchoolApplication as a reference. Run it and make sure it works.
- Create a new Python file supermarket_item.py.
- Inside supermarket_item.py, create a new class SupermarketItem. The class should have 2 attributes name and price.