- This event has passed.
7PM – OOP Python – Latisha
February 8, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Started working on Monster Inheritance
Homework
- in a file called monster.py make a class called Monster that has 3 attributes: species, health, and max_attack.
- Then in main.py, add 2 monsters to your dictionary: the key is the monster’s species and the value is the new Monster(). DO NOT JUST PUT THEM IN THE SQUIGGLY BRACKETS. You must add monster like so: self.monster_dictionary[] = …
If you have any questions, you can ask me at latisha@ayclogic.com.