Given the following code (that doesn\'t work):
while True: #snip: print out current state while True: ok = get_input(\"Is this ok? (y/n)\")
And why not to keep looping if two conditions are true? I think this is a more pythonic way:
dejaVu = True while dejaVu: while True: ok = raw_input("Is this ok? (y/n)") if ok == "y" or ok == "Y" or ok == "n" or ok == "N": dejaVu = False break
Isn't it?
All the best.