print() function 自动 add a \n or space.
print("It is hard to get")
print("PS5 in India")
Output
It is hard to get
PS5 in India
Python Print No Newline
To not add a new line to the end of the string in Python 3, use the end= parameter in the print() function. To print no new line in Python, use the end = “” argument in the print() function.
See the following example of print no line in Python.
print("It is hard to get", end=" ")
print("PS5 in India")
Output
It is hard to get PS5 in India
You can see that it prints on the same line rather than a different line.