Skip to content

Instantly share code, notes, and snippets.

@vgmoose
Created June 6, 2013 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgmoose/5719336 to your computer and use it in GitHub Desktop.
Save vgmoose/5719336 to your computer and use it in GitHub Desktop.
convert.py
output = ""
for x in range(0, 9):
line = raw_input()
for y in range(0, 9):
if (line[y] != 0):
output += str(x) + " " + str(y) + " " + line[y]
output += "\n"
output += "0 0 0\n"
print output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment