0

Simple Calculator in python quiz 2nd. How it will be done?

Didn't understand about first two cases

12th Nov 2020, 9:25 AM
Muhammad Hasan
Muhammad Hasan - avatar
2 Respuestas
+ 1
Remind me what the challenge is? If it's the one that says take two integer input and print the sum, then you need to create two variables and assign an integer input to them. You can make input expect an integer by changing it to " int(input()) " You use " + " to add the variables which contain the numbers. You can use " print() " to output the sum. I can give you the answer but try this yourself first.
12th Nov 2020, 11:02 AM
Olivia
Olivia - avatar
+ 1
print(int(input()) + int(input()))
12th Nov 2020, 11:46 AM
JaScript
JaScript - avatar