Python 3 simple calculation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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);

4th Jan 2021, 3:54 AM
ichihaze
ichihaze - avatar
4 Answers
+ 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)
4th Jan 2021, 3:58 AM
ChaoticDawg
ChaoticDawg - avatar
+ 3
Paste this in code playground you will get your answer
4th Jan 2021, 3:56 AM
Piyush
Piyush - avatar
+ 2
ichihaze What is the Question ? And what is your desired output ??
4th Jan 2021, 3:57 AM
Alphin K Sajan
Alphin K Sajan - avatar
0
Alphin K Sajan Thank you for your reply. I questioned about below contents. Python 3 Strings & Module Project Simple calculator
12th Jan 2021, 4:01 AM
ichihaze
ichihaze - avatar