Cody Bable

Generation

generate functionTue, 23 May 2023

def nearest_value(values: set[int], one: int) -> int:

def nearest_value(values: set[int], one: int) -> int: # your code here return min((abs(one-i), i) for i in values)[1]

Questions about programming?Chat with your personal AI assistant