input: Write a python function to split a list into sublists of length x.
  assert split_list([1, 2, 3, 4, 5], 2) == [[1, 2], [3, 4], [5]]
  assert split_list([1, 2, 3, 4, 5, 6, 7, 8], 3) == [[1, 2, 3], [4, 5, 6], [7, 8]]
  assert split_list([1, 2], 5) == [[1, 2]]
  assert split_list([], 3) == []
output: def split_list(lst, x):
      return [lst[i:i + x] for i in range(0, len(lst), x)]