« All Events
7 PM – Python OOP – Gamas
December 11, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- We continued on Monster Inheritance project.
- Inside main.py, we added sword_attack method.
- Inside main.py, we added magic_attack method.
- Inside monster.py, we added magic_attack(self, damage, magic_type) method.
Homework
- From textbook. copy codes page 168 and 169.
- Inside MonsterInheritance project, create car.py and put Car class codes from the book inside this file.
- Inside MonsterInheritance project, create electric_car.py and put ElectricCar class codes from the book inside this file.