If arr [ i ] is in between first and second then update second
elif ( arr [ i ] > second and arr [ i ] != first ) : NEW_LINE INDENT second = arr [ i ] NEW_LINE DEDENT if ( second == - 2147483648 ) : NEW_LINE print ( " There ▁ is ▁ no ▁ second ▁ largest ▁ element " ) NEW_LINE else : NEW_LINE print ( " The ▁ second ▁ largest ▁ element ▁ is " , second ) NEW_LINE