Il 31/01/19 10:34, Michael Poeltl ha scritto:
hi,
Maybe this is a proper way to do what you'd liked to achieve

text = "The best day of my life!"
newtext = '\n'.join( text.split() )
print(newtext)
The
best
day
of
my
life!


yours
Michael

Thanks Michael, I'll ask to my teacher in the afternoon if he has the same idea, you know when you start a new language you should solve problems just with few things, when your mind understood how the language works you can use every tools of this language! :)

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

Reply via email to