0

Why does my python code not function?

i am still trying to get d hang of how to post things n all dt...please just check my code n explain to me what i did wrong...anyone? https://code.sololearn.com/czauu5VpmfRp/?ref=app

22nd May 2018, 5:34 PM
frank onah
frank onah - avatar
2 Answers
0
- When comparing values use == not = - At line 11 you forgot to add a bracket The game logic is a little off too at line 15 you’re checking if the number given is larger than 27 making the game impossible so change that to >29. There’s also no need for the continue statements as the if chain will break and since there’s no other code it will loop (if the user was incorrect), this makes the code cleaner.
22nd May 2018, 6:40 PM
TurtleShell
TurtleShell - avatar
0
tried it..still giving me syntax error...i am truly stumped
23rd May 2018, 11:03 AM
frank onah
frank onah - avatar