I have declared a variable as"
a1 = 10
Now in a function I need to call this variable by adding "a"+"1". However result is a1 in string and not above declared variable.
Here is the code:
a1 = 10
b = "a"+"1"
print(b)
a1
when I print b, answer is a1, instead of 10. How can I change this concatenate to declared variable?