fnd = False
while L:
    if match(L[0]):
        fnd = True
        break
    L = L[1:]
if not fnd:
    print 'no match found...'


===============================

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

