BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//American Young Coder - ECPv6.10.1.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:American Young Coder
X-ORIGINAL-URL:https://www.ayclogic.com
X-WR-CALDESC:Events for American Young Coder
REFRESH-INTERVAL;VALUE=DURATION:PT1H
X-Robots-Tag:noindex
X-PUBLISHED-TTL:PT1H
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:20230312T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20231105T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20230418T170000
DTEND;TZID=America/Los_Angeles:20230418T180000
DTSTAMP:20260425T090720
CREATED:20230419T012205Z
LAST-MODIFIED:20230425T234834Z
UID:19004-1681837200-1681840800@www.ayclogic.com
SUMMARY:5:00 PM – Python Object Oriented Programming – Sebastian
DESCRIPTION:Today We Did\n\nLarge introduction to object oriented programming\nLearned about classes\, constructors\, attributes\, methods\, and objects\nIn case you need anything\, feel free to email me at sebastian@ayclogic.com\n\nHomework\n\nName your homework APR18_oop_hw\, please submit by next Monday.\nHomework:a) Read through pages 158 to 161b) Given the code that we created which creates a “Pet” class:\n– Create a method “fetch” which takes no parameters\, and increments hunger_level by 1 (your dog gets hungry when it plays fetch!) \n– Add an attribute called “social_level”\, and add it as a parameter to the constructor. This way\, whoever creates their pet can set how social it is. \n– Add a method called “introduce” which takes one parameter\, another pet! This method has a bit of logic so I’m going to break it down further: \nFirst\, check the social level of your pet (this would be the attribute you just created). Second\, check the social level of the pet which is being passed into the introduce function (this part is tricky\, try your best to figure it out). Here is how the logic would look: \nIf both social levels are greater than or equal to 5\, then print “<name attribute> the <animal_type attribute> is now best friends with <parameter name> the <parameter animal_type>!” \nIf both social levels are smaller than 5\, print “<name attribute> the <animal_type attribute> upset with <parameter name> the <parameter animal_type>\, rawr!” \nHere’s the code where we left off: \n\nclass Pet:\n    def __init__(self\, name\, age\, animal_type):\n        self.name = name\n        self.age = age\n        self.animal_type = animal_type\n        self.hunger_level = 0\n\n    def feed(self):\n        self.hunger_level -= 1\n        print(f"{self.name} has been fed\, hunger level is {self.hunger_level}")\n\n\ndog = Pet("Fido"\, 3\, "dog")\n\nNow\, test this out by making a new pet object the way we made a dog\, remember to pass in the new parameter to the constructor\, and test out the introduce function.
URL:https://www.ayclogic.com/event/500-pm-python-object-oriented-programming-sebastian-3/
CATEGORIES:OOP Python,Python Class
END:VEVENT
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20230418T183000
DTEND;TZID=America/Los_Angeles:20230418T193000
DTSTAMP:20260425T090720
CREATED:20230419T023156Z
LAST-MODIFIED:20230419T023156Z
UID:19011-1681842600-1681846200@www.ayclogic.com
SUMMARY:6:30 PM – Python Object Oriented Programming – Sebastian
DESCRIPTION:Today We Did\n\nFinished Supermarket class\nBegan inheritance (child inherits all attributes and methods from parent)\nIn case you need anything\, feel free to email me at sebastian@ayclogic.com\n\nHomework\n\nName your homework APR18_inheritance_hw\, please submit by next Monday.\nHomework:\n– Copy code from page 168 to 170\n– 9-6 and 9-7 from page 173
URL:https://www.ayclogic.com/event/630-pm-python-object-oriented-programming-sebastian-14/
CATEGORIES:OOP Python,Python Class
END:VEVENT
END:VCALENDAR