FunctionRacerProblemsRace

Count Distinct

BeginnerNumPyPython

Return how many different values appear in nums (repeats count once), as an int. Hint: np.unique.

Example 1

nums [4,7,4,4,9]
returns 3

The different values are 4, 7 and 9.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems