n = [3, 5, 7, 9, 11]

def double_list(x):

_for i in range(0, len(x)):

__x[i]= x[i] * 2

_return x

print double_list(n)

def triple_list(x):

_for i in range(1, len(x)):

__x[i] = x[i] + 10

_return x

print triple_list(n)

The result is

[6, 10, 14, 18, 22]

[6, 20, 24, 28, 32]

Now why did the 2nd function use the latest change in the list rather than the original? thank you