sorting list python

Smith smith at
Wed Jan 18 15:38:31 EST 2017

On 18/01/2017 21:34, MRAB wrote:
> If you're wondering about the blank lines, it's because the lines end
> with '\n', which starts a new line, and the print function also starts a
> new line after printing the string.
> Try stripping the '\n' off the end of the line read in with the .rstrip
> method.

Thank you for your kind cooperation

More information about the Python-list mailing list