Created
March 5, 2020 03:44
-
-
Save TylerLeite/ebcb43ec36a6ba6b26711eac845fb012 to your computer and use it in GitHub Desktop.
convert a file to another file
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
out = [] | |
with open('text/skriblio', 'r') as file: | |
for line in file: | |
if '@' in line: | |
continue | |
word = line.strip() | |
if len(word) > 0: | |
out.append(word) | |
with open('out/skriblio', 'w') as file: | |
file.write(','.join(out)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment