Meaning of end = " "

when we say :
print(other, end = " "), what does end signify and what is its use?

Hello @gunjanarora, this end signifies what we want at the end of the line.
See the difference…

print(5,end=' ')
print(5,end=' ')

The output will be 5 5 (because at the end, means after 5 we are asking it to end with ’ ')

print(5)
print(5)

The output will be
5
5
(because at the end, means after 5 we are asking it to end with ‘\n’)
So by default end = ‘\n’ which means next line.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.