redblue ( this initializes the three names to the integer codes and respectively (it' python' equivalent of the enumerated data types you may have seen in other languagesto make sense of thisyou need to know that the range built-in function generates list of successive integers (in onlyit requires list around it if you wish to display its values all at once like this)list(range( )[ list(required in python only this call was previewed briefly in because range is commonly used in for loopswe'll say more about it in another place you may see tuple assignment at work is for splitting sequence into its front and the rest in loops like thisl [ while lfrontl [ ] [ :print(frontl [ [ [ [see next section for alternative the tuple assignment in the loop here could be coded as the following two lines insteadbut it' often more convenient to string them togetherfront [ [ :notice that this code is using the list as sort of stack data structurewhich can often also be achieved with the append and pop methods of list objectsherefront pop( would have much the same effect as the tuple assignment statementbut it would be an in-place change we'll learn more about while loopsand other (often betterways to step through sequence with for loopsin extended sequence unpacking in python the prior section demonstrated how to use manual slicing to make sequence assignments more general in python (but not )sequence assignment has been generalized to make this easier in shorta single starred name*xcan be used in the assignment target in order to specify more general matching against the sequence-the starred name is assigned listwhich collects all items in the sequence not assigned to other names this is especially handy for common coding patterns such as splitting sequence into its "frontand "rest,as in the preceding section' last example assignmentsexpressionsand prints