python print all elements in object code example Example: print items in object python def (myObject): print(vars(myObject))