0
Please help with my python code
Iâm getting a syntax error in line 24. It thinks elif is invalid syntax. This is in python btw. https://code.sololearn.com/cX5UqiA3zkCl/?ref=app
4 Answers
+ 1
break does not take brackets in python. Use just break.
https://www.programiz.com/python-programming/break-continue
I made some changes in your code to adapt it. Feel free to check it if you need it
https://code.sololearn.com/cDBKykHjVJim/#py
+ 1
Bad guesses += 1 indentation. He thinks, he is out of the if loop and that you start a new one with elif
0
Thanks. Now it doesnât understand the break() statement. Iâve been fidling with it, moving it in different areas and indents, but it still doesnât work.
0
Thank you so much. Itâs much better now.