hi im getting this error
TypeError: attack() missing 1 required positional argument: \'self\'
and this is my code
class En
You need to create and use an instance of the class, not the class itself:
enemy = Enemmy()
That instance is then accessible as self. If you don't have an instance, then it's missing and that's what the error message tells you.
self