# the following function outputs the data to screen. def printResult(data): sys.stdout.write( "%s,%s,%s,%s\n" % ("ticker", "avg before int", "avg in int", "avg after int", "result") ) error: TypeError: not all arguments converted during string formatting