Quiz Catalog

Catalog of quizzes

lst = [[1, 2], [2, 2, 3], [4, 2, 1, 1], [1, 2]]
counts = dict()

for el in lst:
counts[tuple(el)] = el

print(len(counts))
3
  • dict/operation/set