[Tutor] Advanced Calculator Program...
. Sm0kin'_Bull
administrata at hotmail.com
Sat Feb 19 22:15:22 CET 2005
I want to make caculator program which enables me to
enter 2numbers and mathsmatics sign and calculates it.
I think this is too difficult for newbie like me...
Please input data
Number1:
Mathsmetics Sign:
Number2:
(Number1) (Sign) (Number2) = (Result)
I wrote this but, Error occurs
print "Please input data"
number1 = int(raw_input("\nNumber1: "))
sign = (raw_input("\nMathsmetics Sign: "))
number2 = int(raw_input("\nNumber2: "))
total = number1 sign number2
print number1, sign, number2, '=', total
please help me
Cheers! :)
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the Tutor
mailing list