I've written a function designed to delete all odd numbers from a list.
for e in range(len(l)):
if l[e] % 2 != 0:
v = [4, 5, 5, 6]
The easiest way to do what you want may be by means of a list comprehension:
def purify(l): return [e for e in l if not (e % 2)]