Skip to content

Instantly share code, notes, and snippets.

@venelrene
Created February 21, 2019 18:19
Show Gist options
  • Select an option

  • Save venelrene/cf9a64af69647a66da10a2a7f45cf0ba to your computer and use it in GitHub Desktop.

Select an option

Save venelrene/cf9a64af69647a66da10a2a7f45cf0ba to your computer and use it in GitHub Desktop.
Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of old songs and make dubstep remixes from them. Let's assume that a song consists of some number of words (that don't contain WUB). To make the dubstep remix of this song, Polycarpus inserts a cer…
def song_decoder(song):
return " ".join(song.replace("WUB", " ").split())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment