Yirmidokuz
0
Q:

convert math equation from string to int

a = '10 * 10'
print(eval(a))
0
expression = '10 * 10'
print(eval(expression))
0

New to Communities?

Join the community