I need to write a program that will check the numbers that a user enters. If the user enters a number more than once then it will skip over it and print out only numbers that the user entered once.
I was playing around with this:
def single_element():
numbers = []
numbers = input("Enter some numbers: ").split()
for i in numbers:
if i in numbers:
i + 1 #I was trying to find a way to skip over the number here.
print(numbers)