Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sort (file):
- file1 = open(file, "r")
- file2 = file1.read()
- list1 = file2.split(' ')
- list2 = []
- list = []
- for i in list1:
- if i not in list:
- list.append(i)
- list2 = sorted(list)
- print(list2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement