New course! Every coder should learn Generative AI!
Try a free lesson0
If there is a list then we need to find the numbers in that list which occurs only once in python.. Pls help
2 Answers
+ 2
print([li for li in numbers if numbers.count(li)==1])
+ 1
You can use list.count(x)