- This event has passed.
4 PM – Python OOP – Darin
September 9 @ 4:00 pm - 5:00 pm
Today We:
- Reviewed the homework for the grocery system v2 program, in adding a dictionary to keep track whether an item is meant to be frozen or not.
- Introduced the concept of object-oriented programming, highlighting the relationship between classes and objects.
- Next week we will explore how to use more classes and objects with different ideas.
Homework:
- In a new file called Sep9_OOP_HW.py, copy pages 158 – 161
- Create a new file called Sep9_RobuxSystem.py and modify your robux system from thonny (you can get the code from the google drive notes if you don’t have the file anymore) to use a dictionary to keep track of the names of the items and the price of the items, and modify the code inside of the while True loop to be similar to how you did in the grocery system to use the dictionary instead.
- You do not need to modify the function at all for this assignment.
Notes:
Email me at ddjapri@ayclogic.com if you have any questions.