This to me seem to be a simple line of code yet I receive a "SyntaxError: 'break' outside loop" error and I can't seem to figure out why. I'm still fairly new to coding; I apologize if the solution is very obvious.
def correct():
print('What Is Your Greatest Desire')
ans2 = input()
return '\n' + ans2 + ' is what you shall receive'
if 4 > 2:
break
Aucun commentaire:
Enregistrer un commentaire