American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

9 AM – Python OOP – Indo – Gamas

October 21, 2023 @ 9:00 am - 10:00 am

What We Did
  1. We converted grocery shopping cart to use ProductItem dictionary.
  2. We generated the menus when we run the program using for loop.
Homework
  1. Create a new file robux_item.py and inside this file, create a new Class RobuxItem.
  2. Inside RobuxItem class, add 2 attributes: name, price.
  3. Inside oct_21_robux_shopping_cart_using_class.py 
    1. create a new dictionary robux_items
    2. Inside this dictionary, the keys would be – 1,2,3,4,5 and the values would be RobuxItem classes.
    3. Change inside while loop to use this single dictionary.
    4. And also produce the menu when you run the program.

Details

Date:
October 21, 2023
Time:
9:00 am - 10:00 am
Verified by MonsterInsights