American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Python OOP – Juan

November 13, 2023 @ 5:00 pm - 6:00 pm

Today We Did
  1. Continued working on the Supermarket System.
  2. Created a class for grocery items.
  3. Added an in_stock attribute, to determine whether items can be purchased or not
Homework
  1. Name your folder Nov20_Supermarket_HW and do:
    1. Finish the restock() function for the GroceryItem class.
      This function should set the in_stock attribute to True
    2. Call the restock() function whenever an item that’s out of stock gets purchased in main.py
    3. Combine similar items together when they’re displayed when
      choice == "5".
    4. Display the total cost of ALL items after user checks out, when choice == "4"

Details

Date:
November 13, 2023
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights