View difference between Paste ID: RmTBTH7t and TeNamt2s
SHOW: | | - or go back to the newest paste.
1
def purify(llista):
2-
	for i in llista:
2+
    for i in llista:
3-
		if i%2 == 0:
3+
        if i%2 == 0:
4-
			pass
4+
            pass
5-
		else:
5+
        else:
6-
			llista.remove(i)
6+
            (llista[llista.index(i)]) = "X"
7-
	return llista
7+
    while "X" in llista:
8-
8+
    	llista.remove("X")
9-
print(purify([4,5,5,4]))
9+
    print llista
10
    return llista