input: Write a python function to generate numbers in a specified range and print them.
  assert generate_and_print_range(5, 16) == [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  assert generate_and_print_range(1, 5) == [1, 2, 3, 4]
  assert generate_and_print_range(10, 13) == [10, 11, 12]
output: def generate_and_print_range(start, end):
      result = list(range(start, end))
      print(result)
      return result