0
Q:

.end() in python

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")
9
# 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") 
1
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
0

New to Communities?

Join the community