python print to same line code example
Example 1: python print without new lines
print('Foo', end='')
Example 2: python print same line
# Python 2 only
print "Seven"
# Backwards compatible (also fastest)
import sys
sys.stdout.write("Nice film")
# Python 3 only
print("Mob Psycho 100", end="")