Implement the Python function specified below. Return ONLY the indented function body, without repeating the…
Implement the Python function specified below. Return ONLY the indented function body, without repeating the…: a task in unslop-harbor (Harbor dataset). def closest integer(value): ''' Create a function that takes a value (string) representing a number and returns the closest integer to it. If the…
The task
def closest_integer(value): ''' Create a function that takes a value (string) representing a number and returns the closest integer to it. If the number is equidistant from two integers, round it away from zero.
Part of rawmodels/unslop-harbor.