On 31/01/19 11:47, ^Bart wrote: >> . A correct answer to the exercise would be: >> >> |You cannot replace a space with \n in a string, >> |because strings are immutable in Python. > > Yes, I thought in a wrong way! :) > Well maybe you can turn the string into a list of characters. Then replace the spaces with newlines and finaly turn the list into a string again. -- Antoon.
-- https://mail.python.org/mailman/listinfo/python-list