This one may help you from one replyer

Home   »   This one may help you from one replyer

fhand = open('romeo.txt')
fh = fhand.read()
lst = list()
words = fh.split()
for each in words:
    if each in lst:
        continue
    else:
        lst.append(each)
        
lst.sort()
print(lst)

Leave a Reply

Your email address will not be published.