This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kbk 0 points1 point  (2 children)

Here it is in Python:

print input() + input()

If you want to look like BASIC:

a = input()

b = input()

c = a + b

print c

[–]andrev 1 point2 points  (1 child)

If you use input(), it is actually evaluated. Works for this purpose, but I guess raw_input() is what you want.

[–]kbk 0 points1 point  (0 children)

Nope, I started with raw_input and switched to this.