print all he data of a class object python code example
Example: python print class variables
# to print out the variable names
print(vars(YourClass))
# to print out names and values
for var in vars(YourClass):
print(getattr(YourClass, var))
# to print out the variable names
print(vars(YourClass))
# to print out names and values
for var in vars(YourClass):
print(getattr(YourClass, var))