Why does this code bring up a SyntaxError? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why does this code bring up a SyntaxError?

Does anyone know why my code leads to a SyntaxError at line 18? https://code.sololearn.com/cVu1POk7xzwr/?ref=app

1st Aug 2019, 10:16 AM
Frits
2 Answers
+ 2
You forgot a colon after if-statment.
1st Aug 2019, 10:23 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 6
You need a character ':' at the end of a line
1st Aug 2019, 10:23 AM
Mikhail Gorchanyuk
Mikhail Gorchanyuk - avatar