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.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to