input: Write a function to remove all occurrences of a specified item from a list. Return the modified list. If the item is not found in the list, return the original list.
  def removeItem(list, item):
      # Create a new list to avoid modifying the original list during iteration
      new_list = [i for i in list if i != item]
      # Return the new list
      return new_list
  
  # Assert statements to validate the function
  assert removeItem([1, 2, 3, 4, 2, 5, 2], 2) == [1, 3, 4, 5]
  assert removeItem([1, 2, 3, 4, 2, 5, 2], 6) == [1, 2, 3, 4, 2, 5, 2]
  assert removeItem([], 1) == []
  assert removeItem([1, 1, 1, 1], 1) == []
output: def removeItem(list, item):
      new_list = [i for i in list if i != item]
      return new_list