+ 1
Please help me complete the python project about simple calculator
24 odpowiedzi
+ 10
x = int(input())
y = int(input())
z = (x+y);
print(z)
It's really simple.
+ 5
show your attempt.
+ 3
Retard, thank you very much.I finished my project this time, sorry for making it difficult for you to teach mešgood workšš»
+ 3
Simple Calculator is simple! That's why it's name is simple calculator.
Please complete your previous lessons and if any doubt you can search .
In simple calculatior you have to take two inputs and and you have to print it's sum .
All the best! š
+ 2
Wait
+ 2
#1#
x=3
y=x+6
print(y)
This, but the result is only testcase 1 which is correct because the answer is 9. When I try to fill it in again for testcase 2 to get 33, both are wrongšŖ
+ 2
Thank you, Samiraš
+ 2
I guess you want this.
Sweet and simple.
x = input("Enter a no")
op = input("Enter an operator like +,*,etc.")
y = input("Enter another no")
print("Result: ",eval(x+op+y))
https://code.sololearn.com/c4Sg6N9f964o/?ref=app
+ 2
This works too
print (int(input()) + int(input()))
+ 1
https://www.sololearn.com/coach/615?ref=app
can you guys correct thisš
+ 1
fine, I'll try again. Thank you very much
+ 1
https://www.sololearn.com/coach/615?ref=app
How about this? I actually know, it's just that the problem is when I enter the input for that calculation first, the result from the second testcase was wrong and it confused me but when I answered with the two calculations above, my answer was all wrong
+ 1
very
easy
take two integer inputs an d output them using print() and ro add them use the addition operatorā+ā to add them up
just 3 lines of code
+ 1
Thanks a lot guysš„°
0
you have to clarify:
x = input(int())
y = input(int())
0
I will try it
0
I'll try it, again
0
x = int(input())
y = int(input())
print(x + y)
0
Hi Azzahra, I also stuck at that place as well. When we give the answer to the test 1, it requires us to give the answer to the test 2 as well.
Seems like it needs us to provide one correct answer to those 2 test in a single run?