I enter the following:
>>> a=2
>>> x0=1
>>> b='a*x0'
Now I want the value of b, which is a*x0, i.e., b=2*1=2. How to implement this code?
I enter the following:
>>> a=2
>>> x0=1
>>> b='a*x0'
Now I want the value of b, which is a*x0, i.e., b=2*1=2. How to implement this code?