[Tutor] python arthematics

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Mar 23 01:10:20 CET 2012


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 at 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.



More information about the Tutor mailing list