Attribute Error
Hello coders I have a bit of an issue; Im trying to get used to code using OOP but I keep getting an, "Attribute error". I can't seem to find the error on my own. So if you see what the issue is, please let me know and I would be most grateful. My code is here: class Ninjutsu: def __init__ (self, colour, element, damage): self.colour = colour self.element = element self.damage = damage def lightning(self): print("Zaapp!!") print("Paralysis effect") class Fire(Ninjutsu): def fire(self): print("Pffff") print("Burn effect") bolt = Ninjutsu("Blue", "Lightning", "10 Damage points") print(bolt.damage) bolt.lightning() Fire_ball = Ninjutsu("Orange", "Fire", "9 Damage points") print(Fire_ball.damage) Fire_ball.fire()