the new extended unpacking syntax requires noticeably fewer keystrokes*ab seq ab ([ ] restlast ab seq[:- ]seq[- ab ([ ] restlasttraditional because it is not only simpler butarguablymore naturalextended sequence unpacking syntax will likely become widespread in python code over time application to for loops because the loop variable in the for loop statement can be any assignment targetextended sequence assignment works here too we met the for loop iteration tool briefly in and will study it formally in in python xextended assignments may show up after the word forwhere simple variable name is more commonly usedfor ( *bcin [( )( )]when used in this contexton each iteration python simply assigns the next tuple of values to the tuple of names on the first loopfor exampleit' as if we' run the following assignment statementa*bc ( gets [ the names aband can be used within the loop' code to reference the extracted components in factthis is really not special case at allbut just an instance of general assignment at work as we saw earlier in this we can do the same thing with simple tuple assignment in both python and xfor (abcin [( )( )]abc ( )and we can always emulate ' extended assignment behavior in by manually slicingfor all in [( )( )]abc all[ ]all[ : ]all[ since we haven' learned enough to get more detailed about the syntax of for loopswe'll return to this topic in multiple-target assignments multiple-target assignment simply assigns all the given names to the object all the way to the right the followingfor exampleassigns the three variables aband to the string 'spam' assignmentsexpressionsand prints