GH avatar 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.

581 out of 597 users completed this Bite.
Will you be Pythonista #582 to crack this Bite?
It takes an average of ~26 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 2.91 on a 1-10 difficulty scale.
» You can do it! 😌

Login and get coding
We use Python 3.7