Python 3 simple calculation | Sololearn: Learn to code for FREE!

+1

Python 3 simple calculation

I CANT GET CORECT ANSWER. I WROTE CODE LIKE BELOW. HOW DO I GET CORRECT? print(3+6) ,print(11+22);

1/4/2021 3:54:30 AM

ichihaze

5 Answers

New Answer

+4

You need to get the input() of both numbers and convert to an int() and store each in a variable. Then print() the sum of the 2 variables. num1 = int(input()) num2 = int(input()) print(num1 + num2)

+3

Paste this in code playground you will get your answer

+3

ichihaze you don't have to pass values yourself. The program will give the inputs and you just have to output their sum.

+2

ichihaze What is the Question ? And what is your desired output ??

0

Alphin K Sajan Thank you for your reply. I questioned about below contents. Python 3 Strings & Module Project Simple calculator