Haii friends
How can I convert the string expression value to float value
ex: s1 = '100+20*50/10-9'
this s1
convert to float
value. Based on the arithmetic operator priority rule it should give 191. But the string expression is not convert to float.
I had use float('100+20*50/10-9')
and it raises error:
Traceback (most recent call last): File "", line 1, in ValueError: could not convert string to float: '100+20*50/10-9`
Thanks!