1

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?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343

0 Answers0