input: Write a function to remove all occurrences of a specified item from a given list. Return the updated list after all the specified items have been removed.
  def removeItem(list, item):
      # loop through the list and remove the specified item
      return [i for i in list if i != item]
  
  # assert test cases
  assert removeItem([1, 2, 3, 4, 2, 5, 2], 2) == [1, 3, 4, 5]
  assert removeItem([3, 5, 5, 5, 2], 5) == [3, 2]
  assert removeItem([1, 2, 1, 1, 3], 1) == [2, 3]
  assert removeItem([], 4) == []
  assert removeItem([1, 2, 3, 4], 5) == [1, 2, 3, 4]
output: def removeItem(list, item):
      return [i for i in list if i != item]