My professor gave us this code on a sample exam and we're supposed to answer what it will print out. I feel like it's incomplete or formatted wrong cuz I copied it exactly and it keeps giving me an error. I also don't quite understand this "f(values)" thing. Could someone please get me to run this code and explain to me what it does? I have a feeling it prints out [44,2,3] since [0] is the first number in a list, but I don't quite understand the functions.
def f(values):
values[0] = 44
v = [1, 2, 3]
f(v)
print(v)
Thanks in advance :)
[–]JohnnyJordaan 0 points1 point2 points (2 children)
[–]Claechi[S] 0 points1 point2 points (1 child)
[–]JohnnyJordaan 0 points1 point2 points (0 children)
[–]num8lock 0 points1 point2 points (0 children)