Problems in making calulating program.

A

administrata

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;
 
M

Michele Simionato

You were on the right track before: look at the tutor
mailing list ;)

<no offence intended, but there is an entire
list devoted to this kind of questions>


Michele Simionato
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top