Purify


#1


https://www.codecademy.com/courses/python-intermediate-en-rCQKw/2/2?curriculum_id=4f89dab3d788890003000096#

Oops, try again. Your function fails on purify([4, 5, 5, 4]). It returns [4, 5, 4] when it should return [4, 4].


def purify(number):
   
    number >=1
    for i in number:
        if i % 2 != 0:
          number.remove(i)
    return number


#2

With each removed element, everything to the right shifts left. Since the current iterator position has already been tested, it moves on to the next, skipping the one that just slipped into the old position.


#10