Created
July 12, 2019 16:46
-
-
Save dewanshrawat15/a9ae67ea37ff7dac94c1bfe193c66dbc 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
output = open("output.txt", "w") | |
temp = open("names.txt", "r") | |
x = temp.read() | |
x = x.splitlines() | |
print(x) | |
t = '' | |
for i in x: | |
for j in i: | |
if j.isalpha() or j == ' ': | |
t = t + j | |
t = t + '\n' | |
output.write(t) |
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
Just a normal script to truncate all numbers and special characters and allow only spaces and alphabets. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment