+ 1

Please help me complete the python project about simple calculator

11th Jan 2021, 2:07 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
24 Respuestas
+ 10
x = int(input()) y = int(input()) z = (x+y); print(z) It's really simple.
11th Jan 2021, 3:01 AM
Samira
Samira - avatar
+ 5
show your attempt.
11th Jan 2021, 2:07 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
+ 3
Retard, thank you very much.I finished my project this time, sorry for making it difficult for you to teach me😁good work👍🏻
11th Jan 2021, 3:05 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
+ 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! 👍
12th Jan 2021, 2:57 PM
Abhiyantā
Abhiyantā - avatar
+ 2
Wait
11th Jan 2021, 2:09 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
+ 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😪
11th Jan 2021, 2:12 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
+ 2
Thank you, Samira😊
11th Jan 2021, 3:05 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
+ 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
12th Jan 2021, 4:13 AM
Saheb Giri
Saheb Giri - avatar
+ 2
This works too print (int(input()) + int(input()))
8th Sep 2021, 2:05 AM
Fadil Isamotu
Fadil Isamotu - avatar
+ 1
https://www.sololearn.com/coach/615?ref=app can you guys correct this😞
11th Jan 2021, 2:33 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
+ 1
fine, I'll try again. Thank you very much
11th Jan 2021, 2:41 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
+ 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
11th Jan 2021, 2:52 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
+ 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
12th Jan 2021, 6:45 AM
Yusuf M Hashmi
+ 1
Thanks a lot guys🥰
12th Jan 2021, 3:17 PM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
0
you have to clarify: x = input(int()) y = input(int())
11th Jan 2021, 2:13 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
0
I will try it
11th Jan 2021, 2:17 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
0
I'll try it, again
11th Jan 2021, 3:00 AM
Azzahra Inas Fadilah
Azzahra Inas Fadilah - avatar
0
x = int(input()) y = int(input()) print(x + y)
12th Jan 2021, 8:34 AM
Ashutosh Ranjan
Ashutosh Ranjan - avatar
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?
4th Jul 2021, 3:37 PM
Kimheng