[Solved] Why does it say that my instance has no attribute x?


That’s because you never set an initial value for x and y in either ArcherDown or Archer. You can solve this problem by adding a method such as

def __init__(self, x, y):
  self.x = x
  self.y = y

to each class.

3

solved Why does it say that my instance has no attribute x?