sorting list python
python at mrabarnett.plus.com
Wed Jan 18 15:34:25 EST 2017
On 2017-01-18 19:51, Smith wrote:
> Hi all,
> could you do better?
> Thank you in advance
> link code:
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
More information about the Python-list