In Python how do I do to the function below change the list locally, that is, only in the scope of the function f without changing x set outside of f ?
x = [1, 2]
def f(x):
x[1] = "novo valor"
return x
f(x)
'''
f alterou...
asked on
25.09.2014 / 05:13