recent pythonsyou can achieve the same effect with the sorted built-intood {' ': ' ': ' ': ' ': ' ': ' ': ' ': {' ' ' ' ' ' ' ' ' ' ' ' ' ' keys list( keys()list(required in xnot in keys sort(for key in keysprint(key'=>' [key] = = = = = = = for key in sorted( )print(key'=>' [key]betterin more recent pythons program logic alternatives here' some sample code for the solutions for step eassign the result of * to variable outside the loops of steps and band use it inside the loop your results may vary bitthis exercise is mostly designed to get you playing with code alternativesso anything reasonable gets full credita [ while len( )if * = [ ]print('at index'ibreak + elseprint( 'not found' [ for in lif ( * =pprint(( * )'was found at' index( )break elseprint( 'not found' appendix dsolutions to end-of-part exercises