I found this code on this site to find the second largest number:
def second_largest(numbers): m1, m2 = None, None for x in numbers: if x >
There is a easy way to do . First sort the list and get the second item from the list.
def solution(a_list): a_list.sort() print a_list[1] solution([1, 2, -8, -2, -10])