Python - Magic Methods and Operator Overloading
Identify the error in this class definition related to string representation methods:
class Dog:
def __str__(self):
return 'Dog'
def __repr__(self):
print('Dog object')
print(Dog())