Find Second Largest Number in List || Second Highest Number in python

preview_player
Показать описание
Find Second Largest Number in List || Second Highest Number in python || Second Large in List #list #python #interview #code
In this video, we will seen python interview questions, How to find second largest number in list with python without using inbuild method or with method.
Рекомендации по теме
Комментарии
Автор

For longer lists it may be faster to use the function

l.pop(l.index(max(l)))

second = max(l)

FrumguyFTW