Skip to content

Instantly share code, notes, and snippets.

@shreyansh26
Created February 27, 2018 07:57
Show Gist options
  • Save shreyansh26/9c4443d59df7469ad8652dcc6676d0b1 to your computer and use it in GitHub Desktop.
Save shreyansh26/9c4443d59df7469ad8652dcc6676d0b1 to your computer and use it in GitHub Desktop.
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