Sorry for asking this question. This is simple python program
odd = lambda x : bool(x % 2)
numbers = [n for n in range(10)]
print numbers
for i in range(len(numbers)):
    if numbers[i]%2!=0:
        del numbers[i]
    print numbers
I am getting error while running this program
Traceback (most recent call last):
  File "test.py", line 5, in <module>
    if numbers[i]%2!=0:
IndexError: list index out of range
I tried many thing but nothing is working, Can any one help me
 
     
    