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:20250309T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20251102T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20250730T150000
DTEND;TZID=America/Los_Angeles:20250730T160000
DTSTAMP:20260506T013500
CREATED:20250731T045036Z
LAST-MODIFIED:20250801T235414Z
UID:29910-1753887600-1753891200@www.ayclogic.com
SUMMARY:3 PM – Python OOP – Allison
DESCRIPTION:Upload your homework as July30_main.py and water_golem.py\nCreate a new file called water_golem.py\n\nCreate a class called WaterGolem. This class will be a child of the Monster class.\nThis class will have 2 attributes: health and max_attack\nMake sure to set up using the parent’s __init__ function.\nCreate receive_magic_attack() function that will take in 2 parameters: damage_point and magic_type\n\nIf magic_type is fire:\n\nPrint: Water Golem is immune to fire attack. Therefore\, the Water Golem suffer no damage\n\n\nIf magic_type is water:\n\nPrint: Water Golem is resistance to water attack. Therefore\, your attack is halved.\nSubtract half the damage points from health\n\n\nOtherwise:\n\nCall the parent’s receive_magic_attack function\n\n\n\n\n\n\nIn your main.py\n\nIn your initialize_monsters function\, add the below to monster_dictionary:\n\nA watergolem with health 30 and max attack of 20\nA vampire (this is a Monster object) with health 45 and max attack of 15\n\n\nCreate a new function called display_strong_monster():\n\nLoop through all monsters in monster_dictionary. If a monster’s health is > 50\, print out that monster’s information using .get_info() function\n\n\nIf the user enters 4\, call display_strong_monster()\n\n\nOther\n\nAdd any missing parts of your class notes from our class notes (see link at bottom)\nReview the homework answers (see link at bottom)\n\n\n\nNotes\n\nYou can reach out via allison@ayclogic.com if you have any questions.\nClass notes and previous homework answers can be found here: Link to Google Drive
URL:https://www.ayclogic.com/event/5-pm-python-oop-allison-7/
CATEGORIES:OOP Python,Python Class
END:VEVENT
END:VCALENDAR