print items in object python

def (myObject):

Here is what the above code is Doing:
1. We create a class named MyClass.
2. We create a constructor for this class.
3. We create an object of this class.
4. We call a method on this object.
5. We print the value returned by this method.
6. We print the value of a variable of this object.
7. We print all the variables of this object.