LearnPy Hub
← Lists problems
Medium

Second Largest

Print the second largest distinct value in the list. If there isn't one, print None.

Input

Space-separated integers.

Output

The second largest distinct value, or None.

Sample 1

Input
4 1 9 7
Output
7

Sample 2

Input
5 5 5
Output
None
solution.py
Output appears here
Hints
Second Largest · Python practice problem · LearnPy Hub