Added By: Editorial Staff | Last Updated:
Today we are going to share a Python program to find the second largest number in a list. If you are a python beginner and want to start learning the python programming, then keep your close attention in this tutorial as I am going to share a Python program to find the second largest number in a list.
Copy the below python program and execute it with the help of python compiler.
n=int(input("Enter number of elements:"))
for i in range(1,n+1):
print("Second largest element is:",a[n-2])
Enter number of elements:4
Second largest element is: 39
Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari View all posts by Editorial Staff