You are a wizard!

Report a typo

Coming back to our game example, add a Wizard class to the mix! You can come up with any spells and fighting methods for them, but you need to implement the class correctly.

Write a program in Python 3
from abc import ABC, abstractmethod


class Player(ABC):
def __init__(self, name, rank, level):
self.name = name
self.rank = rank
self.level = level
super().__init__()

@abstractmethod
def fight(self):
...

@abstractmethod
def do_spell(self):
...

def sing_song(self):
print("No songs for me!")


# create a Wizard
___

Create a free account to access the full topic