0
Why is there a syntax error?
I have a net income calculator, but when I try to run it, it returns: File "./Playground/file0.py", line 10 elif gross > 37950. and gross <= 91900.: ^ SyntaxError: invalid syntax Why is this happening and how can I fix it? My code here: https://code.sololearn.com/crXXWFzDjaj8/#py
5 ответов
0
You are also lacking a parenthesis pair on line 9.
And there is an invalid statement on line 20
+ 1
You're lacking a parenthesis pair on line 19.
0
You've got random decimal points in quite a few places, you need to convert the the "net" to string for output, and some parenthesis are missing.
0
I did all of those things, but it returns the exact same error. The code is better, but it still doesn't work. What else should I try?
0
Thanks! It finally runs without a syntax error. However, the "net" output is always some MASSIVE negative number. Which is weird.