Steven D'Aprano <steve at REMOVETHIScyber.com.au> writes: > row = [] > # processing in a loop... > row.append(chr(num/64) > # finished processing > row = "".join(row) # convert to a string in one hit > print row Probably better to use StringIO or the array module.