input: Write a python function to divide a number by 10 until it is less than or equal to 1000.
  assert my_function(2000) == 200
  assert my_function(15000) == 150
  assert my_function(9999) == 999
output: def my_function(n):
      while n > 1000:
          n /= 10
      return n