DAY 4 of PYTHON top 100 questions : from Basic to Advanced !!
Write a Python program to find the second largest element in an array:- x=[2,7,3,4,9,0,2] x.sort() print("The second largest element is",x[-2]) Output : The second largest element is 7 This code sorts the list x in ascending order using the sort() ...
Apr 20, 20231 min read14
