charactersa is assigned ' ' is assigned ' 'and so on extended sequence unpacking in python (only) new form of sequence assignment allows us to be more flexible in how we select portions of sequence to assign the fifth line in table - for examplematches with the first character in the string on the right and with the resta is assigned ' 'and is assigned 'pamthis provides simpler alternative to assigning the results of manual slicing operations multiple-target assignments the sixth line in table - shows the multiple-target form of assignment in this formpython assigns reference to the same object (the object farthest to the rightto all the targets on the left in the tablethe names spam and ham are both assigned references to the same string object'lunchthe effect is the same as if we had coded ham 'lunchfollowed by spam hamas ham evaluates to the original string object ( not separate copy of that objectaugmented assignments the last line in table - is an example of augmented assignment-- shorthand that combines an expression and an assignment in concise way saying spam + for examplehas the same effect as spam spam but the augmented form requires less typing and is generally quicker to run in additionif the subject is mutable and supports the operationan augmented assignment may run even quicker by choosing an in-place update operation instead of an object copy there is one augmented assignment statement for every binary expression operator in python sequence assignments we've already used and explored basic assignments in this bookso we'll take them as given here are few simple examples of sequence-unpacking assignments in actionpython nudge wink ab nudgewink ab ( [cd[nudgewinkcd ( basic assignment tuple assignment like nudgeb wink list assignment notice that we really are coding two tuples in the third line in this interaction--we've just omitted their enclosing parentheses python pairs the values in the tuple on the right side of the assignment operator with the variables in the tuple on the left side and assigns the values one at time assignment statements