This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

20 lines
331 B
Python

def ListToSet(a):
final = set(a)
final = list(final)
final.sort()
print(final)
def inputList():
time = int(input('Enter number of elements:'))
i = 0
lst = []
while i < time:
addval = input('Enter value for list:')
lst.append(addval)
i += 1
ListToSet(lst)
inputList()