Skip to content

Instantly share code, notes, and snippets.

@Tethik
Last active August 29, 2015 14:06
Show Gist options
  • Save Tethik/45613dcdd319cdd3aead to your computer and use it in GitHub Desktop.
Save Tethik/45613dcdd319cdd3aead to your computer and use it in GitHub Desktop.
Random Tumblr Request.
import sys
list1, list2 = [],[]
for line in sys.stdin:
line = line.strip()
if line == "":
break
parts = line.split(" ")
list1.append(parts[0])
if len(parts) > 1:
list2.append(parts[1])
for i in list1:
for j in list2:
print str(i)+str(j)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment