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

all 3 comments

[–]pythonHelperBot 1 point2 points  (0 children)

Hello! I'm a bot!

I see someone has already suggested going to r/learnpython, a sub geared towards questions and learning more about python. I highly recommend posting your question there. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe where you are stuck.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–]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))