Write a Python program to find the second largest number in given list.


Topic: Write a Python program to find the second largest number in given list.

Solution

list1 = [10, 20, 4, 45, 99]
list1.sort()
print("Second largest element is:", list1[-2])



List all Python Programs