<human>:  Give me a Python function that gives me the closest whole number.
<bot>: Here is a Python function that gives the closest whole number

import math

def closest_whole_number(number):
  """Returns the closest whole number to `number`."""
  return round(number)

# Enter the number
number = 1.5

# Calling the function
print((closest_whole_number(number)))

#Example Output
# 2

#Remember to inspect code for bugs.