def all_unique(lst):
print(lst,len(lst))
# [1, 2, 3, 4, 5, 6] 6
# [1, 2, 2, 3, 4, 5] 6
print(set(lst),len(set(lst)))
# {1, 2, 3, 4, 5, 6} 6
# {1, 2, 3, 4, 5} 5
print(len(lst) == len(set(lst)))
x = [1, 2, 3, 4, 5, 6]
y = [1, 2, 2, 3, 4, 5]
all_unique(x)
# True
all_unique(y)
# False
2020-05-03