I have a key two sets of identical int
variables from two different objects, but one starts its the first element of with 0 and the other with 1
a = 0, b = 5, c = 7 # var_abc
x = 1, y = 6, d = 6 # var_xyz
In order to do other processes, i must convert var_xyz such that var_xyz == var_abc
, so i have to do code this line for each variable in var_xyz:
x,y,z = x-1, y-1, z-1
If we are simply instantiating the variables in var_xyz, we could have done this:
x,y,z = (0,)*3
Is there are another way such that i don't need to hardcode var-1 for each variable in var_xyz? Imagine if there are like 1000 variables in var_xyz.