Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def song_decoder(song):
  2.     song_words = song.split('WUB')
  3.     non_empty_words = [word for word in song_words if word]
  4.     return ''.join(non_empty_words)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement