Return the second largest element from a list of integers. Assume list has at least 2 distinct elements. "Second largest" means the second largest distinct value.
Implement this function:
def second_largest(lst: list) -> int:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: lst.
Input
[10, 5, 8, 20]
Output
10