Bite 104. Split and join

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.

486 out of 499 users completed this Bite.
Will you be Pythonista #487 to crack this Bite?
Average Bite difficulty 1-10 rating: 2.8
» You can do it! 😌

Github login button
We use Python 3.7