fungsi python scond max

#program to find the second largest number of list  
# declaring the list  
list_val = [20, 30, 40, 25, 10]  
# sorting the list  
list_val.sort()  
#displaying the second last element of the list  
print("The second largest element of the list is:", list_val[-2])  
Easy Elk