Solve problem "The number of distinct numbers" online - Learn Python 3 - Snakify

Problem «The number of distinct numbers» (Easy)


Statement

Given a list of integers. Determine how many distinct numbers there are.

This task can be solved in one line of code.


In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
1 2 3 2 1
3
1 2 3 4 5 6 7 8 9 10
10
1 2 3 4 5 1 2 1 2 7 3
6
1 1 1 1 1 1 1 1 1 1 1 1
1