how to print the value of a class object in python code example Example: python print object print(dir(your_variable)) print(vars(your_variable))