Created
February 10, 2015 21:43
-
-
Save katsully/5da5597247f274d57efa 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
############################################ | |
## By: Kat Sullivan | |
############################################ | |
from random import randint | |
import sys | |
prev_line = "" | |
poem = "" | |
for line in sys.stdin: | |
words = line.split() | |
words.sort() | |
for idx,word in enumerate(words): | |
if idx % 2 == 0: | |
poem += word | |
poem += " " | |
poem += "\n" | |
print poem | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment