how to print attributes of object python code example
Example 1: print items in object python
def (myObject):
print(vars(myObject))
Example 2: python get attributes of object
getattr(object, 'attribute_name')
def (myObject):
print(vars(myObject))
getattr(object, 'attribute_name')