American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4 PM – Python OOP – Darin

September 16 @ 4:00 pm - 5:00 pm

Today We:

  1. Reviewed the idea of classes and objects (object oriented programming), and learnt how to use classes and create objects out of them.
  2. 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:

  1. 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.
  2. You do not need to modify the function at all for this assignment.

(2) MAIN homework, do the following:

  1. Do Try It Yourself page 162 in a new file called Sep16_ClassesHW.py
  2. Copy pages 163 to 166 in the same file as the above^

Notes:

Email me at ddjapri@ayclogic.com if you have any questions.

Details

Date:
September 16
Time:
4:00 pm - 5:00 pm
Event Categories:
,
Verified by MonsterInsights