def argmax(sequence, fn):
    "Return the element e of sequence with maximum fn(e) value."
    best_fn, best_e = max([(fn(e), e) for e in sequence])
    return best_e
Return the element e of sequence with maximum fn(e) value.
recipes/Python/442000_Decoding_Shift_or_Rotatior_Caesar_Cipher_or/recipe-442000.py