Created
February 26, 2016 17:59
-
-
Save danaabs/6a6561542909286d7b1a 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
import sys | |
import random | |
all_words_ever = list() | |
for line in sys.stdin: | |
line = line.strip() | |
words = line.split(",") | |
for item in words: | |
all_words_ever.append(item) | |
sampled = random.sample(all_words_ever, 6) | |
for item in sampled: | |
print item.lower().center(40) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment