American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

12:30 PM – Python OOP – Gamas

August 8 @ 12:30 pm - 1:30 pm

Today We Did
  1. We reviewed Human class homework.
Homework

Inside aug_3_2026_human_hw.py

  1. create a new method, do_activity(self, action)
    1. Inside this method print the name and action like this
      1. Emma played basketball yesterday.
      2. Check if the age attribute is greater than or equal to 80. Then it will say “Emma, you are too old to play basketball.”
  2. Outside of a class,
    1. create a new list “human_list”
    2. add human_1, human_2, human_3, human_4 into the list.
    3. Use for loop to loop through every human in the list and call describe.

Details

Date:
August 8
Time:
12:30 pm - 1:30 pm