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. If the list is empty then return an empty dictionary.
  assert list_to_dict([["apple", "red", "green"], ["banana", "yellow", "green"]]) == {'apple': ['red', 'green'], 'banana': ['yellow', 'green']}
  assert list_to_dict([]) == {}
output: def list_to_dict(lst):
      if not lst:
          return {}
      return {sublist[0]: sublist[1:] for sublist in lst}