PythonBuilt-inprint

Prints objects to the standard output stream.

Syntax

print(*objects, sep, end, file)

Example

Enter values below to update the example in real time.

print
sep
line1
line2
print("Hello, World!")
print("a", "b", "c", sep="-")   # a-b-c
print("line1", end=" ")
print("line2")                   # line1 line2