I've seen from list of integers, get number closest to a given value and finding index of an item closest to the value in a list that's not entirely sorted, but neither of them cover how to find closest values if there are multiple.
Example:
>>> myList = [1, 4, 5, 9, 10, 12, 15, 17]
>>> min(myList, key=lambda x: abs(x - 16))
15 # How could I get both 17 and 15?