DEV Community

msp
msp

Posted on

sep, end parameter in python print function()

Today I tried to use the sep, end parameter in the print function.
By default this function will add empty space between the strings. It accepts other than the space as well. Let's try to print Tab, NewLine character and //.

end : By default this parameter contains nothing. we can add any strings/numbers/characters. Let's try to pass the " MSP" string to this parameter.

I use Notepad++ for writing a program, you can use Notepad, Visual studio Code and other text editor as well.

I use windows command prompt to execute the below code.

Image description

Result

Image description

Top comments (0)