Guest User

Untitled

a guest
Jul 15th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. phrase = input("Type in: ")
  2. phrase_splited = phrase.split(' ')
  3.  
  4. word_list = []
  5. for i in phrase_splited:
  6. if i not in word_list:
  7. word_list.append(i)
  8. else:
  9. continue
  10. word_list.sort()
  11. print((' ').join(word_list))
Add Comment
Please, Sign In to add comment