Hi! My problem is that im trying to make an Int out of the string a=X+Y*Z-A/B... (for example 1-2+6-3*2/3-3). when i do Int(a) it doesn't work beacuse of the (+,-,/,*)
What should i do?
What should i do?
x,y,z,w = 3.0,12,16,4.5 a='x+y*z-w/x' print eval(a) print int(eval(a))
Comment