make class variables print python code example
Example 1: what is a ython instance
An object belonging to a class. e.g. if you had an Employee class, each
individual employee would be an instance of the Employee class
Example 2: 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))