sorting list python
MRAB
python at mrabarnett.plus.com
Wed Jan 18 15:34:25 EST 2017
More information about the Python-list mailing list
Wed Jan 18 15:34:25 EST 2017
- Previous message (by thread): sorting list python
- Next message (by thread): sorting list python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2017-01-18 19:51, Smith wrote: > Hi all, > could you do better? > Thank you in advance > > link code: > https://repl.it/FMin/8 > 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.
- Previous message (by thread): sorting list python
- Next message (by thread): sorting list python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list