Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list = []
- elem = True
- while elem != "":
- elem = input('Введите элемент или enter чтобы закончить: ')
- if elem != "":
- list.append(elem)
- for i in list:
- for r in range(list.count(i)):
- if list.count(i) > 1:
- list.remove(i)
- print(list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement