Please explain why this code gives me a syntax error even though everything is perfect? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please explain why this code gives me a syntax error even though everything is perfect?

This is a luck game that generates a random number,and the user has to guess it.while running the code,it gives me a syntax error.Please explain why it happens. https://code.sololearn.com/cTyDicFG205Y/?ref=app

20th Mar 2019, 6:59 PM
Soham Roy
Soham Roy - avatar
2 Answers
+ 2
Missing closing parentheses on line 14.
20th Mar 2019, 7:04 PM
Diego
Diego - avatar
+ 1
thank you Diego.As the error was shown for line 15,i didnt notice the error on line 14.
20th Mar 2019, 7:07 PM
Soham Roy
Soham Roy - avatar