Skip to content

Instantly share code, notes, and snippets.

@danaabs
Created February 26, 2016 17:59
Show Gist options
  • Save danaabs/6a6561542909286d7b1a to your computer and use it in GitHub Desktop.
Save danaabs/6a6561542909286d7b1a to your computer and use it in GitHub Desktop.
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