0

Please see this code, and say what i do wrong

I'm dont know why code is not working https://code.sololearn.com/ci0Nl3UF1ApT/?ref=app

26th Jan 2022, 9:00 AM
Тимофей
Тимофей - avatar
6 Respuestas
+ 1
Use return rather than using print Take user input correctly: x=int(input()) ... Use (:) after def and if's, correct indentation errors...etc. edit]: Тимофей, I said that you have to take input like this: ... x=int(input()) ... anyway, I have corrected your code: https://code.sololearn.com/cerRWkG6aGaI/?ref=app
26th Jan 2022, 9:11 AM
NEZ
NEZ - avatar
+ 2
f=input(); print(f, "=", eval(f)) # Input: 3+2 Good Luck
26th Jan 2022, 9:35 AM
SoloProg
SoloProg - avatar
+ 1
Thank you all!
26th Jan 2022, 10:08 AM
Тимофей
Тимофей - avatar
0
and inside the if else statements use a string to check if the symbol is entered. enclose them inside quotes for example if i == "+": print(z+5) Use return instead of print inside the functions Eg return x+y
26th Jan 2022, 9:10 AM
MATOVU CALEB
MATOVU CALEB - avatar
0
I'm try
26th Jan 2022, 9:11 AM
Тимофей
Тимофей - avatar
0
New error😂
26th Jan 2022, 9:19 AM
Тимофей
Тимофей - avatar