Say I have a list of variables with the following values
a, b, c = 1, 2, 3
How can I update the value of a,b,c in a for loop?
I've tried the following but it doesn't work.
for v in (a, b, c):
v = v + 1
The values for a,b,c remains unchanged after the process
print(a, b, c)
# [1] 1 2 3