class a :
b = 10
I have a class ‘a’ with attribute ‘b’.
o = a()
I create a object ‘o’ of class ‘a’
v = 'b'
I have another variable ‘v’ having the string representation of attribute ‘b’ of class ‘a’
Now suppose I have only ‘v’ and ‘0’.
ie how can I do
o.v
How do I get the value of b ie ’10’
Are you looking for something like this?