tuples tuple assignment one of the unique syntactic features of the python language is the ability to have tuple on the left side of an assignment statement this allows you to assign more than one variable at time when the left side is sequence in this example we have two-element list (which is sequenceand assign the first and second elements of the sequence to the variables and in single statement 'have''funxy 'havey 'funit is not magicpython roughly translates the tuple assignment syntax to be the following: 'have''funx [ [ 'havey 'funstylistically when we use tuple on the left side of the assignment statementwe omit the parenthesesbut the following is an equally valid syntaxm 'have''fun(xym 'havey 'funa particularly clever application of tuple assignment allows us to swap the values of two variables in single statementab ba python does not translate the syntax literally for exampleif you try this with dictionaryit will not work as you might expect