Python how to return the most common items in a list that are closely related in value : Suppose i have a list:

    lst = [2.2, 2.23, 2.24, 3, 4, 5, 3.8]

I would like to know if there is a function out there that figures out that my most common and related numbers are:

    most_common = [2.2, 2.23, 2.24]

From there i can return the smallest of the list or do whatever other operation i want.

This is the function i am using so far and i am not pleased with the results

    max(set(lst), key=lst.count)

Thanks in advance.