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

28th Jan 2020, 7:47 PM
it's a me-a, meme addict
it's a me-a, meme addict - avatar
5 ответов
0
You are also lacking a parenthesis pair on line 9. And there is an invalid statement on line 20
29th Jan 2020, 6:00 AM
Seb TheS
Seb TheS - avatar
+ 1
You're lacking a parenthesis pair on line 19.
28th Jan 2020, 8:01 PM
Seb TheS
Seb TheS - avatar
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.
28th Jan 2020, 8:34 PM
rodwynnejones
rodwynnejones - avatar
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?
29th Jan 2020, 1:32 AM
it's a me-a, meme addict
it's a me-a, meme addict - avatar
0
Thanks! It finally runs without a syntax error. However, the "net" output is always some MASSIVE negative number. Which is weird.
30th Jan 2020, 4:37 AM
it's a me-a, meme addict
it's a me-a, meme addict - avatar