Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
If there is a list then we need to find the numbers in that list which occurs only once in python.. Pls help
2 Antworten
+ 2
print([li for li in numbers if numbers.count(li)==1])
+ 1
You can use list.count(x)