input: def removeItem(list, item):
      """Remove all occurrences of a specified item from a given list.
      
      >>> removeItem([1, 2, 3, 4, 2, 5, 2], 2)
      [1, 3, 4, 5]
      >>> removeItem(['a', 'b', 'a', 'c'], 'a')
      ['b', 'c']
      >>> removeItem([10, 20, 30, 40], 50)
      [10, 20, 30, 40]
      """
output:     while item in list:
          list.remove(item)
      return list