fork download
  1. # your code goes her
  2.  
  3. nums = [3,2,2,3]
  4.  
  5. val = 3
  6.  
  7. i=0
  8. while i < len(nums):
  9.  
  10. del nums[i]
  11. i += 1
  12.  
  13. print(nums)
Success #stdin #stdout 0.02s 27704KB
stdin
Standard input is empty
stdout
[2, 3]