how to print a property of all objects in a class python code example Example: print items in object python def (myObject): print(vars(myObject))