American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4 PM – Python OOP – Darin

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

Today We:

  1. Reviewed the homework for TIY pages 162, 167
  2. Got started on the School Application project, further implementing object oriented concepts.

Homework:

(1) IF you haven’t already:

  1. Do Try It Yourself page 167 numbers 9-4 and 9-5 in the same file as Sep16_ClassesHW.
  2. A default value means something like __init__(self, name, price = 10), where price is a default parameter when creating an object of the class (an optional parameter)

(2) MAIN homework, do the following:

  1. In your Sep30_SchoolSystem project, store the newly created s Student object in a list AND a dictionary.
  2. You have to create the list and dictionary in the __init__  method. You can do this like:
    self.students_list = []
    self.students_dict = {}
  3. Add the s object into the list by use of students_list.append(s) and add the s object into the dictionary by use of students_dict[ {student_name} ] = s

Notes:

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

Details

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