American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python OOP

October 29, 2021 @ 7:00 pm - 8:00 pm

Today We Do
  1. We went over how to use Python dictionary properly.
  2. We use Python dictionary to list all teachers using for loop.
  3. When finding teacher using dictionary, when the requested name does not exists in the dictionary, print “<name> does not exists in the system”
  4. We made find teacher using dictionary, not case sensitive.
  5. We started SupermarketInheritance project
Homework
  1. 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.
  2. Create a new Python file supermarket_item.py.
  3. Inside supermarket_item.py, create a new class SupermarketItem. The class should have 2 attributes name and price.

Details

Date:
October 29, 2021
Time:
7:00 pm - 8:00 pm
Event Categories:
,