Created
February 21, 2019 18:19
-
-
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…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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