How to use end in Python
![](https://pythonpoint.net/wp-content/uploads/2020/12/how-to-use-end-in-python-1024x576.jpg)
As we already know, by default Python’s print() function ends with a newline.
Python’s print() function comes with a parameter called 'end'
. By default, the value of this parameter is ‘\n’, i.e. the new line character. You can end a print statement with any character/string using this parameter.
# python program # end in print() print("Python ", end = ' ') print("is Awesome!", end = ' ') print("##")
Output:
Python is Awesome! ##
Subscribe
Login
Please login to comment
0 Discussion