What is " end='' " in "print(other, end='') for?
Hi @aastha over here end is a parameter of Python’s print() function. End parameter is used to specify the end of a print statement. With the help of this parameter we could end our print statement with any character/string.
Over here we have specified end=’’ which is used to make it print on the same line. That’s why over here we have output as jatinkatyal if we would have specified end=’@’ it would have been jatin@katyal@
I hope this helps
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.