Skip to content

Instantly share code, notes, and snippets.

@LiterallyVoid
Created December 28, 2017 21:02
Show Gist options
  • Save LiterallyVoid/60a087391c220fee009430814fe32dd5 to your computer and use it in GitHub Desktop.
Save LiterallyVoid/60a087391c220fee009430814fe32dd5 to your computer and use it in GitHub Desktop.
import sys
f = open(sys.argv[1]).read().split("\n")
o = "[\n"
for l in f:
o += " " + ", ".join(l.strip().split(" ")) + ",\n"
o += "]"
print(o)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment