0
Invalid Syntax??
I’m trying to complete “Tip Calculator” in Python for beginners, but it keeps saying “invalid syntax”. What could be wrong with the code that I put?
2 odpowiedzi
+ 1
The error message tells you which line is wrong. Sometimes the message will say what is the problem but sometimes it is hard to understand. The line number is the most important thing to see.
Common errors are having unbalanced ( ) or " " or [ ]. If the line with the error is an if, while, or for loop, maybe you'll need a : on the end.
There are so many possible problems. Read the error message and line number and you'll figure it out.
+ 6
probably your code has at least one syntax error...
you should share your code to get more accurate answer, or debug it by yourself (tip: read carefully full error message and use stack to target you research)