
March 30th, 2004, 10:22 PM
|
|
Contributing User
|
|
Join Date: Mar 2003
Posts: 81
Time spent in forums: 4 m 41 sec
Reputation Power: 11
|
|
|
Calculate String
Help, I have a string that contains a mathematical expression(very simple can only contain +,-,*,and\) How do I get python to evaluate that string? Thanks, btw I need to ensure that the divison is integer division. Thanks!
example
str="3+5*2\1"
Last edited by jimo9 : March 30th, 2004 at 10:30 PM.
|