d={'Albert':{'salary':10000,'age':23},
'sophia':{'salary':6000,'age':27},
'komal':{'salary':7000,'age':25}}
lst=[]
for v in d.values():
lst.append(v['salary'])
print(max(lst))
print(min(lst))
d={'Albert':{'salary':10000,'age':23},
'sophia':{'salary':6000,'age':27},
'komal':{'salary':7000,'age':25}}
lst=[]
for v in d.values():
lst.append(v['salary'])
print(max(lst))
print(min(lst))
0 Comments