vars vars Return thd dictionary attribute. class Person: name = "John" age = 36 country = "norway" x = vars(Person) print(x) >>> {'__module__': '__main__', 'name': 'John', 'age': 36, 'country': 'norway', '__dict__': , '__weakref__': , '__doc__': None} Basic Python 2022.08.25