input: def removeItem(my_list: List, item_to_remove: int) -> List:
      """
      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([1, 2, 3, 4, 2, 5, 2], 5)
      [1, 2, 3, 4, 2, 2]
      """
output:     while item_to_remove in my_list:
          my_list.remove(item_to_remove)
      return my_list