The default value of end is \n meaning that after the print statement
it will print a new line. So simply stated end is what you want to be
printed after the print statement has been executed
Eg: - print ("the end is near",end="") or print ("the end is near",end="\n")
# This Python program must be run with
# Python 3 as it won't work with 2.7.
# ends the output with '@'
print("Python" , end = '@')
print("GeeksforGeeks")
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.
print("Hi" , end = ' ')
print("Jhon", end = ' ')
output: Hi Jhon