On 22/03/2012 22:14, Sukhpreet Sdhu wrote:
i want to write a program that reads simple arithematic epressions and 
calculates the result.
for example input "1*3+2" should generate "5'" as result



_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Take a look at the operator module as it should give you some ideas.

--
Cheers.

Mark Lawrence.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to