def dropwhile(pred, lst):
    """Iterate over `lst` until `pred` is True and return the remaining
    elements in `lst`."""
    i = 0
    for e in lst:
        if pred(e) == False:
            break
        i += 1
    return lst[i:]
