demo_ref_vars.py:
class Person: name = "John" age = 36 country = "norway" x = vars(Person) print(x)
C:\Users\My Name>python demo_vars.py
{'__module__': '__main__', 'name': 'John', 'age': 36, 'country': 'Norway', '__dict__': <attribute '__dict__' of 'Person' objects>, '__weakref__': <attribute '__weakref__' of 'Person' objects>, '__doc__': None}