if ( *xin lprint(( * )'was found at' index( * )elseprint( 'not found' [for in range( ) append( *iprint(lif ( *xin lprint(( * )'was found at' index( * )elseprint( 'not found' list(map(lambda **xrange( ))print(lor [ ** for in range( )list(to print all in xnot if ( *xin lprint(( * )'was found at' index( * )elseprint( 'not found' code maintenance there is no fixed solution to show heresee mypydoc py in the book' examples package for my edits on this code as one example part ivfunctions and generators see "test your knowledgepart iv exerciseson page in for the exercises the basics there' not much to this onebut notice that using print (and hence your functionis technically polymorphic operationwhich does the right thing for each type of objectpython def func( )print(xfunc("spam"spam func( func([ ][ part ivfunctions and generators