- This event has passed.
4 PM – Python OOP – Darin
September 16 @ 4:00 pm - 5:00 pm
Today We:
- Reviewed the idea of classes and objects (object oriented programming), and learnt how to use classes and create objects out of them.
- Learnt more about attributes (variables of the class) and methods (functions of the class) through the Dog class.
Homework:
(1) IF you haven’t already:
- 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.
(2) MAIN homework, do the following:
- Do Try It Yourself page 162 in a new file called Sep16_ClassesHW.py
- Copy pages 163 to 166 in the same file as the above^
Notes:
Email me at ddjapri@ayclogic.com if you have any questions.