Anshul n = int(input(“Enter number of elements”)) arr=[] for i in range(0,n): ele=input(“Enter Element: \n”) arr.append(ele) arr.sort() print(arr[-2]) Log in to Reply
n = int(input(“Enter number of elements”))
arr=[]
for i in range(0,n):
ele=input(“Enter Element: \n”)
arr.append(ele)
arr.sort()
print(arr[-2])