How to use end in Python
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