loop in sorted order multiply to all elements of arrbut in sorted order arr [ for in sorted(arr)print( * in reversed sorted order for in sorted(arrreverse=true)print( * loop over keys dc 'toy': 'play': 'games': print keys of dictionaries for in dcprint(dloop over keys and values dc 'toy': 'play': 'games': print keysvalues of dictionaries for kv in dc items()print(kvtoy play games create dictionaries from lists ['toy''game''tiger' ['toys''games''tigers'#create dict dc dict(zip(kv)print(dc{'game''games''tiger''tigers''toy''toys' dict(enumerate( )print( { 'toys' 'games' 'tigers'looping and modifying the list simultaneously we need to make copy of the list for such operations as shown belowloopupdate py animals ['tiger''cat''dog'am animals copy((continues on next page good practices