Jan-12-2021, 03:25 PM
(Jan-12-2021, 01:11 PM)DeaD_EyE Wrote: It looks silly, but works:
pos0 = pos1 = pos2 = input()another way:
pos0 = input() pos1 = pos0 pos2 = pos0If you change the value of pos0, pos1 and pos2 won't change.
Think you just need to be a little careful - your alternative option works great for scalar variables but with lists, objects (and I think tuples as well) this will cause issues as this copies the position reference of the variable and not the value of the variable
Kind regards
RF