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
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.
0
tried it..still giving me syntax error...i am truly stumped