input: Write a function to generate a list of numbers in reverse order using a for loop.
  assert reverse_list(5)==[5, 4, 3, 2, 1]
  assert reverse_list(10)==[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
  assert reverse_list(1)==[1]
output: def reverse_list(n):
      result = []
      for i in range(n, 0, -1):
          result.append(i)
      return result