Skip to content

Question 22

Evaluate:

len({5, 3, 8, 5, 9, 1, 8, 5, 9, 3})
Solution

Just count the number of distinct elements inside the set - do not count any repeated instance of an already accounted-for element.

Answer
5