You can use
sys.stdout.write() Sometimes iI find sys.stdout.writesys.stdout.write more convenient than printprint for printing many things to a single line, as I find the ending comma syntax of printprint for suppressing the newline inconvenient.