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