The fact the the parenthesis` are nested has nothing to do with anything.
It is the ,
(comma) that is important. Which is why box = 128, 128
works and whose end result is the equivalent of box = (128, 128)
>>> box = 128, 128
>>> box
(128, 128)
>>> box = (128, 128)
>>> box
(128, 128)
For example, in python:
>>> myvar = ((128))
>>> myvar
128
but
>>> myvar = ((128),) # notice the COMMA
>>> myvar
(128,)
(128,) is called a tuple
which is something like a LIST (mylist = []
)
One of the main differences is a LIST can be modified, a tuple cannot:
e.g.
mylist.append(1) # works
myvar.append(1) # fails