Created
February 27, 2018 07:57
-
-
Save shreyansh26/9c4443d59df7469ad8652dcc6676d0b1 to your computer and use it in GitHub Desktop.
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
f = open('sumFile2', 'r') | |
f2 = open('tempSum2', 'w') | |
import re | |
for line in f: | |
line2 = re.sub(r'\s' , '\n', line) | |
f2.write(line2) | |
f.close() | |
f2.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment