Created
August 27, 2015 01:18
-
-
Save apisznasdin/cdf21f1f425ae23bdcb0 to your computer and use it in GitHub Desktop.
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 characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment