input: Write a python function to get a slice of each row from a 2D list.
  assert get_slice([[1, 2, 3], [4, 5, 6], [7, 8, 9]], 0, 2) == [[1, 2], [4, 5], [7, 8]]
  assert get_slice([[10, 20, 30], [40, 50, 60], [70, 80, 90]], 1, 3) == [[20, 30], [50, 60], [80, 90]]
  assert get_slice([[100, 200, 300], [400, 500, 600], [700, 800, 900]], 0, 1) == [[100], [400], [700]]
output: def get_slice(lst, start, end):
      return [row[start:end] for row in lst]