I am trying to pass a string value to a while loop, but the won't return the updated string, what am I doing wrong?
def test(str):
random stuff
while True:
if(test 1 passes):
break
else:
more random stuff
if(test 2 passes):
break
else:
tests didn't work
test(str)
break
return str
Aucun commentaire:
Enregistrer un commentaire