Last active
May 30, 2018 18:31
-
-
Save CoderSherlock/f6496f1617c5cd1103d06a86b92afee1 to your computer and use it in GitHub Desktop.
formatting script
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
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