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?

18th Feb 2021, 11:44 PM
♥ KimWooBin Lover ♥
♥ KimWooBin Lover ♥ - avatar
2 Antworten
+ 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.
19th Feb 2021, 2:38 AM
Jerry Hobby
Jerry Hobby - avatar
+ 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)
18th Feb 2021, 11:58 PM
visph
visph - avatar