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

Wednesday, November 28, 2012

Codecademy: Modifying each element in a list...


#sample solution


n = [3,5,7]
def myFun(x):
for i in range(0,len(x)):
x[i] = x[i] * 2
return x
print myFun(n)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts