Python - Magic Methods and Operator Overloading
Identify the issue in this code snippet:
class Animal:
def __init__(self, species):
self.species = species
def __repr__(self):
return species
pet = Animal('Dog')
print(pet)