Python Program to Find the Largest, Minimum & Second-Largest Number in a List [Hindi] #20

preview_player
Показать описание
In this video, We are explaining about Python Program to Find the Largest, Minimum & Second-Largest Number in a List. Please do watch the complete video for in-depth information.

WsCubeTech – Digital Marketing Agency & Institute.

✔ We can help you to create a Digital Marketing plan to take your business to new heights.
✔ Offering Job Oriented Most Latest, Updated, and advanced Digital Marketing Courses with Practical, Hands-on Live Projects Training & Exposure.
For More information : Call us at : +91- 92696-98122

There is a complete playlist of Digital Marketing Interview Tips & Tricks available -

There is a complete playlist of Facebook Ads available -

There is a complete playlist of Twitter Ads available.

✅ CONNECT WITH THE FOUNDER (Mr. Kushagra Bhatia) -

Please don’t forget to Like, Share & Subscribe

--------------------------------------| Thanks |---------------------------
#PythonProgram #FindNumbers
Рекомендации по теме
Комментарии
Автор

thank you mam for wonderful explaination🥰

kartik_zop
Автор

Your code won't work for repeated values
Here is the correct version of it
my_list=[2, 3, 5, 5, 6, 6 ]

new_list=set(my_list)
sorted_list = sorted(new_list)
print(sorted_list[-2])

garda_shorts
Автор

# Python prog to illustrate the following in a list
def find_len(list1):
length = len(list1)
list1.sort()
print("Largest element is:", list1[length-1])
print("Smallest element is:", list1[0])
print("Second Largest element is:", list1[length-2])
print("Second Smallest element is:", list1[1])

# Driver Code
list1=[123, 345, 456, 12, 32, 43, 64, 12, 1]
Largest = find_len(list1)

mirzaakibbeig
Автор

Repeated values ke liye ye logic kam nhi kr rha h

krishnakantverma
Автор

If we can't use sort function then

simplesimp