Google News
logo
Python Program to Print Output Without a Newline
To print output without a newline in Python, we can use the `end` parameter of the `print()` function. By default, the `end` parameter value is `\n`, which causes a newline to be printed after the output. We can set the `end` parameter to an empty string to print the output without a newline.

Here's an example program that demonstrates this :
Program :
print("Hello", end='')
print("World", end='')
Output :
HelloWorld