while not done:
    isok = False
while not (done or isok):
    ok = get_input('Is this ok? (y/n)')
if ok in ('y', 'Y') or ok in ('n', 'N'):
    done = True
How to break out of multiple loops in Python?