American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Python OOP – Bill

April 19, 2022 @ 5:00 pm - 6:00 pm

Today We:
  1. Learned about how to create a class or custom data type
  2. Created a GroceryItem class with the attributes: name, price, is_frozen, brand
  3. Learned how to create a variable that uses our Grocery Item data type
  4. Learned about the __init__ function/method
  5. Learned how to access the attributes of the variable
  6. Learned about what self means
  7. Learned about how to add attributes and added another atribute: is_dairy
  8. Learned how to make and call custom methods inside the class
Your HW:
  1. Create a new file called April_19_ClassesHW
  2. Follow the book along pages 158 – 161 and copy the code

Details

Date:
April 19, 2022
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights