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.

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

Login and get coding
We use Python 3.7