Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- response = raw_input("Enter file name: ")
- lst = []
- no_dup=[]
- with open(response) as file:
- for line in file:
- lst = line.split()
- for i in lst:
- print ("Item: %s" % i)
- if i not in no_dup:
- no_dup.append(i)
- sorted_array=sorted(no_dup)
- print sorted_array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement