input: Write a function to convert 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.
  dict1 = {}
  for lst in [list1, list2]:
   key = lst[0]
   val = lst[1:]
   dict1[key] = val
  
  assert convert_list_to_dict([["apple", "red", "green"], ["banana", "yellow", "green"]])=={'apple': ['red', 'green'], 'banana': ['yellow', 'green']}
  assert convert_list_to_dict([["carrot", "orange"], ["grape", "purple", "green"]])=={'carrot': ['orange'], 'grape': ['purple', 'green']}
  assert convert_list_to_dict([])=={}
  assert convert_list_to_dict([["single"]])=={"single": []}
output: def convert_list_to_dict(lst_of_lsts):
      dict1 = {}
      for lst in lst_of_lsts:
          if lst:
              key = lst[0]
              val = lst[1:]
              dict1[key] = val
      return dict1