Problems in making calulating program.

administrata administrata at hotmail.com
Tue Feb 15 08:39:50 EST 2005


I wrote this to add 2 numbers...

print "Please input data"
number1 = int(raw_input(" "))
number2 = int(raw_input("+ "))


total = number1 + number2
print total

raw_input("")

I want to make output like this...

1 + 1 = 2

But, actually... it looks like this...

1
+ 1
2

HELP;



More information about the Python-list mailing list