input: Write a function to find the intersection of two lists.
  assert intersect([1, 2, 3, 4, 5], [4, 5, 6, 7, 8]) == [4, 5]
  assert intersect([10, 20, 30], [30, 40, 50]) == [30]
  assert intersect([1, 2, 3], [4, 5, 6]) == []
  assert intersect(['a', 'b', 'c'], ['c', 'd', 'e']) == ['c']
output: def intersect(list1, list2):
      return [item for item in list1 if item in list2]