PythiloEasy · 12 min · Task 46 of 100 · progress kept in this browser

Second distinct largest

Return the second distinct largest integer, or None if fewer than two distinct values exist.

largest, second = 3, 2
value = 5
second, largest = largest, value
print(largest, second)
Your task

Return the second distinct largest integer, or None if fewer than two distinct values exist.