How to find the elements that appear only once in the list python?

print(“Enter a list of numbers separated by spaces:”)
list = [int(s) for s in input().split()]

def unique(list):
unique_list =
for x in list:
if x not in unique_list:
unique_list.append(x)
for x in unique_list:
print (x, end = ’ ')

What’s wrong of this code??

You can use print to write out what is being done and then you can check your output to see where the problem is

Observe what’s being done.

Also are you sure you’ve decided what you mean to do? Because your title says one thing, but then you use the word “unique” and that means something else.

So, I couldn’t use def unique code for this?
What should I use??