Created
August 21, 2019 02:28
-
-
Save dmoneyballer/ad3c9aade5f35ab5f0b444a53adc4b7d 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 = input('what file would you like to read?') | |
text = set() | |
with open(f, 'r') as fr: | |
for line in fr: | |
vals = line.split() | |
for val in vals: | |
text.add(val) | |
text = sorted(text) | |
for val in text: | |
print(val) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment