Count Unique Values
beginnerUp next
Up next
Output will appear here...
The starter code reads a line of integers into a list. Print how many different values it contains.
For the input 1 2 2 3 3 3, a correct solution prints 3.
Tip
Converting a list to a set drops the duplicates for you.
No comments yet. Start the discussion.