def slow_find_le(seq, k):
        'Last item with a key less-than or equal to k.'
        for item in reversed(seq):
            if item <= k:
                return item
        return -1
Last item with a key less-than or equal to k.
recipes/Python/577197_SortedCollection/recipe-577197.py