- This event has passed.
7 PM – Python OOP – Darin
January 14 @ 7:00 pm - 8:00 pm
What We Did Today:
- Continue the MonsterInheritance project, implementing nested if statements and reviewing object oriented concepts regarding the keyword “self”
Homework:
Continue in your Monster Inheritance project in main.py and monster.py, and do the following:
Inside of elif attackChoice == “2”:
# create a method in monster.py called sword_damage, and inside that method, reduce # the monster's health by a random integer # print the following: # You attacked dragon with 10 damage and the dragon has 90 health remaining. # the only thing here (in the elif attackChoice == "2") is calling that method
Notes:
You can contact me at ddjapri@ayclogic if you have any questions!