input: Write a function that converts a list of lists into a dictionary where the first element of each list is the key and the rest of the elements are the values.
  
  def list_to_dict(list_of_lists):
      result_dict = {}
      for lst in list_of_lists:
          key = lst[0]
          val = lst[1:]
          result_dict[key] = val
      return result_dict
  
  assert list_to_dict([["apple", "red", "green"], ["banana", "yellow", "green"]]) == {'apple': ['red', 'green'], 'banana': ['yellow', 'green']}
  assert list_to_dict([["carrot", "orange", "purple"], ["grape", "purple", "green"]]) == {'carrot': ['orange', 'purple'], 'grape': ['purple', 'green']}
  assert list_to_dict([]) == {}
  assert list_to_dict([["strawberry", "red"]]) == {'strawberry': ['red']}
output: def list_to_dict(list_of_lists):
      result_dict = {}
      for lst in list_of_lists:
          key = lst[0]
          val = lst[1:]
          result_dict[key] = val
      return result_dict