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 >
def SecondSmallest(x): lowest=min(x[0],x[1]) lowest2 = max(x[0],x[1]) for item in x: if item < lowest: lowest2 = lowest lowest = item elif lowest2 > item and item > lowest: lowest2 = item return lowest2 SecondSmallest([10,1,-1,2,3,4,5])