After executing the following code,
my_list = []
v = 1
my_list.append(v)
v = 2
print(my_list)
the result is
[1]
I think this happens because "v" is appended by value, not by reference. Is there anyway to pass it by reference on appending, so that result can be 2?