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.
  
  def list_to_dict(lists):
      result = {}
      for lst in lists:
          key = lst[0]
          val = lst[1:]
          result[key] = val
      return result
  
  assert list_to_dict([["apple", "red", "green"], ["banana", "yellow", "green"]]) == {'apple': ['red', 'green'], 'banana': ['yellow', 'green']}
  assert list_to_dict([["carrot", "orange"], ["grape", "purple"]]) == {'carrot': ['orange'], 'grape': ['purple']}
  assert list_to_dict([["dog", "bark"], ["cat", "meow"], ["bird", "chirp"]]) == {'dog': ['bark'], 'cat': ['meow'], 'bird': ['chirp']}
  assert list_to_dict([]) == {}
  assert list_to_dict([["single"]]) == {'single': []}
output: def list_to_dict(lists):
      result = {}
      for lst in lists:
          key = lst[0]
          val = lst[1:]
          result[key] = val
      return result