Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Printing on the Same Line

# Python 2 only
print "Live PD",

# Backwards compatible (also fastest)
import sys
sys.stdout.write("Breaking Bad")

# Python 3 only
print("Mob Psycho 100", end="")
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Printing #Same #Line
ADD COMMENT
Topic
Name
5+5 =