I am new to python and can't figure this out.
I have a class like
class Person():
def __init__(self, name, age):
self.name = name
self.age = age
def greet(self):
print('Hello', self.name)
And I try to print it using print but it prints
<__main__.Person object at 0x101fe9438>
Why does it not print the name and age?