# your code goes her nums = [3,2,2,3] val = 3 i=0while i < len(nums): del nums[i] i += 1 print(nums)
Standard input is empty
[2, 3]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!