how to get dictionary values in python frol a class code example
Example: python convert object into ditct
class A():
def __init__(self):
self.a = 1
self.b = 2
a = A()
aDict = vars(a)
class A():
def __init__(self):
self.a = 1
self.b = 2
a = A()
aDict = vars(a)