Skip to content

Instantly share code, notes, and snippets.

@CoderSherlock
Last active May 30, 2018 18:31
Show Gist options
  • Save CoderSherlock/f6496f1617c5cd1103d06a86b92afee1 to your computer and use it in GitHub Desktop.
Save CoderSherlock/f6496f1617c5cd1103d06a86b92afee1 to your computer and use it in GitHub Desktop.
formatting script
import sys
s = []
for i in range(0, int(sys.argv[1])):
s.append(raw_input())
s[i] = s[i][:-1]
for i in range(0, int(sys.argv[1])/5):
print("{0},{1},{2},{3},{4}".format(s[i*5],s[i*5+1],s[i*5+2],s[i*5+3],s[i*5+4]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment