Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def song_decoder(song):
- song_words = song.split('WUB')
- non_empty_words = [word for word in song_words if word]
- return ''.join(non_empty_words)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement