Quotes help make search much faster. Example: "Practice Makes Perfect"

Friday, November 30, 2012

Codecademy: purify


#sample solution


def purify(listOfNums):
newList = []
for num in listOfNums:
if num % 2 == 0:
print num
#listOfNums.pop(index)
newList.append(num)
#print newList
return newList

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts