File: class/Extras/Other/PriorClasses/t2-vancouver-oct15/loopelse.py

L = [....]

while L:
    if match(L[0], key):
        break
    else:
        L = L[1:]
else:
    print 'no match...'


def func():
    ...



[Home page] Books Code Blog Python Author Train Find ©M.Lutz