input: Write a function to generate a list in Python using a while loop that appends the current number to the list until the number reaches a specified limit. The function should take an integer 'limit' as input and return the generated list.
  assert generate_number_list(10)== [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  assert generate_number_list(5)== [0, 1, 2, 3, 4]
  assert generate_number_list(0)== []
  assert generate_number_list(-1)== []
output: def generate_number_list(limit):
      result = []
      i = 0
      while i < limit:
          result.append(i)
          i += 1
      return result