input: Write a python function to generate all possible contiguous sublists of a list.
  assert generate([1, 2, 3]) == [[1], [2], [3], [1, 2], [2, 3], [1, 2, 3]]
  assert generate([4, 5, 6]) == [[4], [5], [6], [4, 5], [5, 6], [4, 5, 6]]
  assert generate([7, 8]) == [[7], [8], [7, 8]]
output: def generate(lst):
      result = []
      for i in range(len(lst)):
          for j in range(i+1, len(lst)+1):
              result.append(lst[i:j])
      return result