Print No Newline [portable] - Python
By default, Python’s print() adds a newline character ( \n ) at the end:
sentence = "" for word in ["Python", "is", "fun"]: print(word, end=" ") sentence += word + " " print("\nFinal:", sentence) python print no newline
Output: Hello, World!