( [ ] for ( *bcin [( )( )]print(abc [ [ in practicethis approach might be used to pick out multiple columns from rows of data represented as nested sequences in python starred names aren' allowedbut you can achieve similar effects by slicing the only difference is that slicing returns type-specific resultwhereas starred names always are assigned listsmanual slicing in for all in [( )( )]abc all[ ]all[ : ]all[ print(abc ( ( see for more on this assignment form nested for loops now let' look at for loop that' bit more sophisticated than those we've seen so far the next example illustrates statement nesting and the loop else clause in for given list of objects (itemsand list of keys (tests)this code searches for each key in the objects list and reports on the search' outcomeitems ["aaa" ( ) tests [( ) for key in testsfor item in itemsif item =keyprint(key"was found"break elseprint(key"not found!"( was found not founda set of objects keys to search for for all keys for all items check for match because the nested if runs break when match is foundthe loop else clause can assume that if it is reachedthe search has failed notice the nesting here when this code runsthere are two loops going at the same timethe outer loop scans the keys listand the inner loop scans the items list for each key the nesting of the loop else clause is criticalit' indented to the same level as the header line of the inner for loopso it' associated with the inner loopnot the if or the outer for this example is illustrativebut it may be easier to code if we employ the in operator to test membership because in implicitly scans an object looking for match (at least logically)it replaces the inner loopfor loops