lambda solution in Clear category for Nearest Value by oldjaponec
nearest_value = lambda X,y: min((abs(i-y),i) for i in X)[1]
Aug. 12, 2021