Write program for 2nd largest number without using inbuilt function and without more than 1 loop?
Sigiloso
import sys a=[int(x) for x in input().split()] #To take all user inputs max1=a[0] max2= -sys.maxsize # to initialize max2 as minimum #oly one loop for i in a: if i > max1: max1,max2 = i,max1 if i max2: max2 = i print(max2)