+ 2

why is this code not working? :(

hello there, if anyone knows python well, then plase help me with this question: i was tring to make a calculator which gives square of a number, addition of two numbers or subtraction of two numbers. but when i tried to output the square of a number, it throwed away an error. please tell why. It was answered correctly by "E ~ J" but now the confusion is how is the code working now :/ https://code.sololearn.com/ctbo2QZjfZsb/?ref=app https://code.sololearn.com/cl7WavjxuCLs/?ref=app https://code.sololearn.com/ciF7tKLgkZVM/?ref=app https://code.sololearn.com/ccqwRaYw7gLj/?ref=app

7th Sep 2022, 10:09 AM
Altair Enigma
Altair Enigma - avatar
4 Réponses
+ 4
It's your parenthesis on the second line. All open parenthesis require closing parenthesis. And try not to use them if you don't need it
7th Sep 2022, 10:15 AM
Slick
Slick - avatar
+ 1
thnx E J, that really helped!
8th Sep 2022, 2:58 PM
Altair Enigma
Altair Enigma - avatar