+ 2
Why does my code write that line 10 is incorrect and there is a syntax error?
4 odpowiedzi
+ 5
RASTY ,
both of your operations are performing an addition, but the second one has to be a subtraction.
...
elif operation == "-":
c = a + b # should be: c = a - b
...
+ 2
Hello RASTY
I don't know. Your bug is in line 9 : print("Result " + str(c) <- add ) to close print()
+ 1
Thank you
0
You were missing one closing parentheses in this line:
print("Result " + str(c))