def closest_values(L):
    assert len(L) >= 2
    L.sort()
    valmin, argmin = min((L[i] - L[i - 1], i) for i in range(1, len(L)))
    return L[argmin - 1], L[argmin]
# snip}
Initialize the dictionary of languages by querying the catalogs
dataset/ETHPy150Open jilljenn/tryalgo/tryalgo/closest_values.py/closest_values--crossover with--dataset/ETHPy150Open perseas/Pyrseas/pyrseas/dbobject/language.py/LanguageDict._from_catalog