Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print function in python

# How to print in Python
print("Hello World!")
# How to print multiple words using comma separator
print("Hi", "there")
# How to separate the objects if there is more than one.
print("Chelsea","Liverpool", sep="-vs-")
#Specify what to print at the end. Default is '
'
print("Hello World",end="!") 
# or use empty string "" for no new line
print("Hello World",end="")
 
PREVIOUS NEXT
Tagged: #print #function #python
ADD COMMENT
Topic
Name
2+4 =