#- > Any easy way of obtaing this output? #- #- f.write( "Hits for %s: %d" % (month[i], teller[i]) ) You need the end of line: f.write( "Hits for %s: %d \n" % (month[i], teller[i]) ) Otherwise it'll be very ugly, :) . Facundo