input: Write a python function to check if a variable is a float.
  assert is_float(4.5) == True
  assert is_float("hello") == False
  assert is_float(3) == False
output: def is_float(var):
      return isinstance(var, float)