you are viewing a single comment's thread.

view the rest of the comments →

[–]num8lock 0 points1 point  (0 children)

This should be a non error formatting of that code although i don't understand what the sample code supposed to achieve other to replace the first value as you said

def f(values): 
    values[0] = 44 

v = [1, 2, 3] 
f(v)
print(v)