Else Statements "invalid syntax" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Else Statements "invalid syntax"

Line 5 give me "invalid syntax". I tried all numbers but nothing. Can you help me? https://code.sololearn.com/cwZZsBkdRpFc/?ref=app

2nd May 2018, 11:55 PM
Parsix3
Parsix3 - avatar
2 Answers
+ 3
Mohamed ELomari Thank you.
3rd May 2018, 12:03 AM
Parsix3
Parsix3 - avatar
+ 2
you're forgotten ":" if num == 9:
3rd May 2018, 12:00 AM
MO ELomari