Below is the simple code to fetch instance variable list and its value.
Below code provides output of list instance variables and its value. I required help to find static variables list and its value.
class Test:
x = 10
def __init__(self):
self.a =10
t = Test()
print("Instance Variables:",t.__dict__)
Actual Results:
Instance Variables: {'a': 10}
Expected results:
Instance Variables: {'a': 10}
Static Variable: {'x':10}