+ 3
Depending on the actual case, you could use [lists] to hold the actual values, and assign these lists to a variable, which act more or less as pointers. For example: a = [1] # instead of "a = 1" b = a # both a and b point to the same list b[0] = 2 print(a) # now a holds the value 2
6th May 2017, 4:35 AM
Álvaro