input: 
  def removeItem(list, item):
      """ Removes all occurrences of the specified item from the given list.
      >>> removeItem([1, 2, 3, 4, 5, 2, 6], 2)
      [1, 3, 4, 5, 6]
      >>> removeItem(['a', 'b', 'c', 'a'], 'a')
      ['b', 'c']
      >>> removeItem([1, 2, 3, 4, 5], 6)
      [1, 2, 3, 4, 5]
      """
      return [i for i in list if i != item]
  
  # Example
  print(removeItem([1, 2, 3, 4, 2, 5, 2], 2))
  # Output: [1, 3、4, 5]
  
output:     return [i for i in list if i != item]