American Young Coder (AYC)

Loading Events

« All Events

  • This event has passed.

9 AM – Python OOP – Indo – Gamas

October 21 @ 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.
  1. Create a new file and inside this file, create a new Class RobuxItem.
  2. Inside RobuxItem class, add 2 attributes: name, price.
  3. Inside 
    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.


October 21
9:00 am - 10:00 am
Verified by MonsterInsights