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)\")
Hopefully this helps:
x = True y = True while x == True: while y == True: ok = get_input("Is this ok? (y/n)") if ok == "y" or ok == "Y": x,y = False,False #breaks from both loops if ok == "n" or ok == "N": break #breaks from just one