Created
March 1, 2015 12:25
-
-
Save christianp/4d55e5c78aae5d4b41d4 to your computer and use it in GitHub Desktop.
number of words between "landslide" and "Beelzebub" in Bohemian Rhapsody - https://twitter.com/wacnt/status/558051793121607681
This file contains 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
# bohemian rhapsody lyrics from http://www.azlyrics.com/lyrics/queen/bohemianrhapsody.html | |
bohemian_rhapsody = re.sub(r'[?!.,]','',bohemian_rhapsody) | |
words = re.split(r'\s+',bohemian_rhapsody) | |
print(words.index("Beelzebub")-words.index("landslide")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
279