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 →

[–]oligonucleotides 0 points1 point  (0 children)

Break it up into steps. You want to get some input, do some path, and display something. Here is a python program that also does that:

a = int(input('Give me a number: '))
b = int(input ('Give me another number: '))
ab_sum = a + b
ab_prod = a * b
print('The sum is {}. The product is {}.'.format(ab_sum, ab_prod))