We use Python 3.6

go back Level: Intro (img: IN / score: 1) level Bite 104. Split and join

268 out of 271 users completed this Bite ...
Will you be Pythonista #269 to crack this Bite?
Average Bite difficulty 1-10 rating: 2.71
» You can do it! 😌

Split up the message on newline (\n) using the split builtin, then use the join builtin to stitch it together using a '|' (pipe).

So Hello world:\nI am coding in Python :)\nHow awesome! would turn into: Hello world:|I am coding in Python :)|How awesome!

Your code should work for other message strings as well.

Github login button