Archived
1
0
Fork 0
This repository has been archived on 2024-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
PY4E/Assignment 8.4/main.py

12 lines
179 B
Python
Raw Normal View History

2021-09-08 10:33:48 -05:00
fh = open("romeo.txt")
words = []
for line in fh:
for word in line.rstrip().split():
if not word in words:
words.append(word)
words.sort()
print(words)