LearnPy Hub
← Lists problems
Medium

Second Smallest

Read a list of integers and print the second smallest distinct value, or None if there isn't one.

Input

One line of integers.

Output

A value or None.

Sample 1

Input
5 1 4 1
Output
4

Sample 2

Input
7 7
Output
None
solution.py
Output appears here
Second Smallest · Python practice problem · LearnPy Hub