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
splitbuiltin, then use the
joinbuiltin to stitch it together using a '|' (pipe).
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.