Join our newsletter for the latest updates.

Python Program to Print Output Without a Newline

In this example, you will learn to print output without a newline.

To understand this example, you should have the knowledge of the following Python programming topics:

Using end keyword

# print each statement on a new line
print("is easy to learn.")

# new line

# print both the statements on a single line
print("Python", end=" ")
print("is easy to learn.")


is easy to learn.

Python is easy to learn.

Using the end keyword, you can append a string at the end of the print text. In the above example, we have passed a space with end, which adds a space at the end of the line and concatenates the content of the next print statement.