for (ixnumin enumerate(nums)sums[ixsums get(ix num for key in sorted(sums)print(key'='sums[key]similar to priorbut using lists instead of dictionaries for sums import sys filename sys argv[ numcols int(sys argv[ ]totals [ numcols for line in open(filename)cols line split(','nums [int(xfor in colstotals [( yfor (xyin zip(totalsnums)print(totalstest for regressions in the output of set of scripts import os testscripts [dict(script='test py'args='')dict(script='test py'args='spam')or glob script/args dir for testcase in testscriptscommandline '%(script) %(args)stestcase output os popen(commandlineread(result testcase['script'resultif not os path exists(result)open(result' 'write(outputprint('created:'resultelsepriorresult open(resultread(if output !priorresultprint('failed:'testcase['script']print(outputelseprint('passed:'testcase['script']build gui with tkinter (tkinter in xwith buttons that change color and grow from tkinter import use tkinter in import random fontsize colors ['red''green''blue''yellow''orange''white''cyan''purple'def reply(text)print(textpopup toplevel(part viiexceptions and tools