Created
August 27, 2015 01:18
-
-
Save apisznasdin/cdf21f1f425ae23bdcb0 to your computer and use it in GitHub Desktop.
Revisions
-
apisznasdin created this gist
Aug 27, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ file_1 = open("input.txt", "r") file_2 = open("output.txt","r+") mylist = sorted(file_1.read().split(','), key=str.lower) for line in mylist: file_2.write(","+line) file_1.close() file_2.close()