Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. list = []
  2. elem = True
  3. while elem != "":
  4.   elem = input('Введите элемент или enter чтобы закончить: ')
  5.   if elem != "":
  6.     list.append(elem)
  7.  
  8. for i in list:
  9.   for r in range(list.count(i)):
  10.     if list.count(i) > 1:
  11.       list.remove(i)
  12. print(list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement