input: Write a python function to create a dictionary from two lists, assigning each element the next three numbers.
  assert create_dict(["A", "B", "C", "D"], [1, 2, 3, 4, 5, 6, 7, 8, 9]) == {'A': [1, 2, 3], 'B': [4, 5, 6], 'C': [7, 8, 9], 'D': [7, 8, 9]}
  assert create_dict(["X", "Y"], [10, 20, 30, 40, 50]) == {'X': [10, 20, 30], 'Y': [40, 50]}
  assert create_dict(["W", "Z"], [1, 2, 3]) == {'W': [1, 2, 3], 'Z': [1, 2, 3]}
output: def create_dict(keys, numbers):
      result = {}
      num_len = len(numbers)
      for i, key in enumerate(keys):
          start_index = i * 3
          end_index = min(start_index + 3, num_len)
          result[key] = numbers[start_index:end_index]
          if len(result[key]) < 3:
              result[key] = numbers[-3:]
      return result