What is the use of end=’ ‘ in Python?
end=‘ ’parameter in Python:-
It is a parameter of print( ) function. By default it is set as end=’\n’ for new line in print( ) function but if you want to change it means you don’t want a new line every time or different ending point of message then it can be set as you want. For Example:-
print(“this is the first line”,end=’ ‘) # ‘ ‘ whitespace will be come between this line and next upcoming line.
print(“this is second line”,end=’***’) # ending with ***
print(“this is the last line”)