Advance min() and max() : Python tutorial 162

preview_player
Показать описание
Guys please help this channel to reach 20,000 subscribers. I'll keep uploading quality content for you.

Python is easy programming language to learn and anyone can learn it, and these tutorials are 100% free in hindi.

You can share this playlist with your brother, sisters and friends. This will surely add some values to their life.

If you follow this complete playlist of python tutorial surely you will learn everything about python programming language.

This video is all about advance 'min and max function'.

Рекомендации по теме
Комментарии
Автор

this is really helpful, especially for analytics problem while analyzing unstructured JSON's

rahulv
Автор

Jinka ... STUDENT2 me ummashable something aa raha hai.. gaar se dekho.. vo LIST HAI JISKE ANDER DICT. STORE HAI...

ZatchBell_ODD
Автор

Hello Bhai me ma'am anish jain he me aap ke vedio Pasand karts ho

anishjain
Автор

Use print(name, key =len) no need of functions

jaypatel-mejo
Автор

students2 is a list. How did you apply .get() in a list while it's a method for dictionary?

ektajaiswal
Автор

dear harshit, i am hemant, please yaar ye complict dictionary ki detail video banao, i cleared all your chapter but, mari train ye complict dictionary par ruk jati hai, nahi samaj pa raha, please help karo do harshit,

TheDev
Автор

sir mujhy is concept ki ni samjh aa rhi k kasiy item lambda function mai jy gi?
max(names, key = lambda item: len(item)

knowledgeandentertainmentt
Автор

sir is saying at 7.00 that its dict type but its none type then how can i access that as dictionary

RakeshRai-bdys
Автор

Sir, if in one list two name length are same, what will be print ??

ajaypanchal
Автор

sir didnt get that ["name'] part at 7:00. can you please help me with this?

muhammadbilalhaneefqureshi
Автор

THANX DEAR, THANKYOU SO MUCH, KABHI KABHI PROBLEM HOTI HE, AAPKA CONTECT BHI KARNE KI KOSHIS KI, MAGAR HO NAHI PAYA, HOW CAN I GET HELP FROM U ??? ANY SUDGESTION

TheDev
Автор

a=['shivam', 'harshit', 'pandey', 'deepak', ' dej']
b = [len(i) for i in a]
print(max(b))

deepakpandey-kqif
Автор

ye jo student vali dictionary hai vo samaj me nahi aa raha, skip karke aage bhi chala gaya, magar mind vahi ruka hua he, please help us

TheDev
Автор

Hi, I am getting not getting the desired results using 'min' function in 'students2' dictionary. Could you do the same and see if you are facing the same issue?

salaciousakhil
Автор

Sir! there is a problem in this program, I hope you will give its solution. The problem is:
when there are more then one words having same length, program return first word always.

zeeshanakram
Автор

Get method is not in list so how did it work at 6:14

yugrana
Автор

mujhe samjh nhi aya access kaisa kr li aisa to kuch btaya nhi apna pehle

rahulmourya
Автор

Bhaya.. Itna coding hei sara yad hi nahi rehta.. Bhul jata hu.. Note karke rakha hua hai sub... Mujhe ek bat batawo kya sub ko a yad nahi rahati hei.. Kya a bara problem hai...??? Please answer karo bhaya...

hemantadas
Автор

bro drop box kyu ni khulta tumara "Too many request " ye error aati hai

Nomanqureshi
Автор

print("min() and max() function use ")

number=[1, 2, 3, 4, 5, 6, 7, 8]
print(f"min value number : {min(number)}")
print(f"max value number : {max(number)}")

name = ["hari", "dev", "krishna"] # lenth of name max

def function(item):
return len(item)

print(max(name, key= function))
print(min(name, key= function))
print(max(name, key= lambda item : len(item)))

students=[
{"name":"hari", "score":90, "age":22},
{"name":"krishna", "score":80, "age":24},
{"name":"narayan", "score":70, "age":20},
{"name":"sagar", "score":95, "age":26}
]

print(max(students, key= lambda i : i.get("score")))
print(max(students, key= lambda i : i.get("score"))["name"])

data_students={
"sagar" : {"score":90, "age":23},
"hari" : {"score":94, "age":22},
"narayan" : {"score":99, "age":25}
}

print(max(data_students, key= lambda i : data_students[i]["score"]))

sagarbhagat
join shbcf.ru