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

Wednesday, November 28, 2012

Codecademy: Modifying an element of a list...


#sample solution

n = [3,5,7]
def myFun(x):
x[1] = x[1] + 3
return x
print myFun(n)

1 comment:

  1. n = [3, 5, 7]
    def list_function(x):
    x[1] = x[1] + 3
    return x
    print list_function(n)

    ReplyDelete


This is an example of scrolling text using Javascript.

Popular Posts