pyassistant

Second Largest Element in a List

Given a list of integers, write a function to return the second largest element from the list.

Example:

Input:
[5, 2, 10, 8, 3]
Output:
8

Make sure you return your solution, don't print!

AI

Bot

Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.