« All Events
6 PM – Python OOP – Gamas
October 26, 2022 @ 6:00 pm - 7:00 pm
Today We Did
- We created a new version of RobuxSystem utilizing dictionary in Oct19_RobuxSystemV2.py.
- We reviewed how to loop through each element inside dictionary.
Homework
- Inside Oct12_LoopingThroughDictionaryHomework.py file, change the code in the for loop to be like below
-
1. HAT
2. HAIR
3. VIP Server
- After you are done with above, change the code inside for loop to also utilize item_prices dictionary to eventually display the following
-
1. HAT - 100 Robux
2. HAIR - 150 Robux
3. VIP Server - 500 Robux
- Create Oct26_Class1.py and copy codes from page 158, 160 to 161.