Created
May 13, 2017 20:54
-
-
Save 0x27/501f368b3a91e8972f9cb59ecf8121b3 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python2 | |
# coding: utf-8 | |
# implements: https://twitter.com/twisteddoodles/status/863474505808846848 | |
# we import some random | |
import random | |
# first, we create our arrays, and pick random words from them and store. | |
a = random.choice(["cat", "horse", "seagull", "dolphin", "fire engine"]) | |
b = random.choice(["escape", "make love to", "smother", "dance with"]) | |
c = random.choice(["drumkit", "firework", "toilet", "seagull", "bag"]) | |
d = random.choice(["disco", "airport", "changing room", "tumble dryer"]) | |
# next we build our sentance | |
sentance = "This sounds like a %s trying to %s a %s in a %s." %(a, b, c, d) | |
# finally we print it! | |
print(sentance) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment