Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
.count() solution in Clear category for Non-unique Elements by PawlakBartosz43
def checkio(data):
non_unique = [] #creating an empty array (list) we're gonna use
for i in data:
if(data.count(i) > 1): #should a single number appear more than once - add it to our new list
non_unique.append(i)
return non_unique
Oct. 31, 2016
Comments: