explanationwe can observe that the use of each print statement displays the result in new line hence"hello""and""welcomeare printed on three different lines sometimesit is convenient to view the output of single line of printed text over several python statements as an examplewe may compute part of complicated calculationprint an intermediate resultfinish the calculationand print the final answer with the output all appearing in one line of text the "endargument in print statement allows us to do so in the following exampleif user is able to print the output in single line the "endargument is used for not shifting the control to next line this is illustrated in the following example#program to display output of different print statements in single line print(' 'end='print(' 'end='print(' 'end='in [ ]runfileabc explanationin the above programwe have used "endargument in print function this will cause the cursor to remain on the same line as the printed text henceall the letters are printed in the same line without this "endargumentthe cursor moves down to the next line after printing the text #program to show use of end argument print('please enter an integer value'print('please enter an integer value'end=''print('hello'print(end='please enter an integer value'in [ ]runfileplease enter an integer valueplease enter an integer valuehello please enter an integer valueexplanationthe statement print('please enter an integer value:'is an abbreviated form of the statement print('please enter an integer value:'end='\ 'that isthe default ending for line of printed text is the string '\ 'the newline control code the next statement print ('please enter an integer value'end=''terminates the line with the string 'please enter an integer value:rather than the normal \ newline code the difference in the behavior of the two statements is indistinguishable similarlythe statement print(end='please enter an integer value'essentially moves the cursor down to next line another keyword argument is "sepwhich allows us to control how the print function visually separates the arguments it displays the name "sepstands for separator by defaultthe print function places single space in between the items it prints the print(function uses keyword argument named "septo specify the string to use insert between items the default value of "sepis the blank string' string containing single space