input: 
  def removeItem(list, item):
      """
      Removes all occurrences of a specified item from a given list.
  
      >>> removeItem([1, 2, 3, 4, 2, 5, 2], 2)
      [1, 3, 4, 5]
      """
      for i in list[:]:
          if i == item:
              list.remove(i)
      return list
  
output:     for i in list[:]:
          if i == item:
              list.remove(i)
      return list