American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4 PM – Python OOP – Darin

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

Today We:

  1. 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.
  2. Introduced the concept of object-oriented programming, highlighting the relationship between classes and objects.
  3. Next week we will explore how to use more classes and objects with different ideas.

Homework:

  1. In a new file called Sep9_OOP_HW.py, copy pages 158 – 161
  2. 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.
  3. 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.

Details

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