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
  • 963,270
  • 265
  • 3,804
  • 3,187

0 Answers0