searching for a solution, but can't find any. I need to create a program that prompts the user for a list of integers , stores in another list only unique integers (for example 1 to 10), and displays the resulting list. For this moment I have a program that just copies full list and prints it without sorting integers:
def inputnumber():
numbers = input('Enter number(s): ').split(',')
return [int(i) for i in numbers]
x = inputnumber()
y = x[:]
print(y)
and sorry guys, I'm just a beginner and just trying out everything. Should I work with del function theres another way?