Tuple unpacking leads to the beautiful Python idiom for swapping two (or more) variables:
>>> a = 'jelly'
>>> b = 'bean'
>>> a, b = b, a
>>> a
bean
>>> b
jelly
Tuple unpacking leads to the beautiful Python idiom for swapping two (or more) variables:
>>> a = 'jelly'
>>> b = 'bean'
>>> a, b = b, a
>>> a
bean
>>> b
jelly