def moses(pred, seq):
    """
    return two iterators: filter(pred, seq), filter(not pred, seq)

    Example
    ~~~~~~~

    >>> moses(lambda x:x > 5, range(10))
    ([6, 7, 8, 9], [0, 1, 2, 3, 4, 5])
    """
    trueitems = []
    falseitems = []
    for x in seq:
        if pred(x):
            trueitems.append(x)
        else:
            falseitems.append(x)
    return trueitems, falseitems
