0% found this document useful (0 votes)
32 views3 pages

Argh Ajit Prog

Uploaded by

prad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views3 pages

Argh Ajit Prog

Uploaded by

prad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1)

d = {1:2, 2:90, 3: 50}

print("Total sum of values in the dictionary:")

print(sum(d.values()))

OUTPUT

2)

d = {1:2, 2:90, 3: 50}

m=1

for i in d:

m=m*d[i]

print(m)

OUTPUT
3} d = {1:2, 2:90, 3: 50}

k=int(input('Enter any key'))

if k in d:

d.pop(k)

print (d)

else:

print('Key not found')

4)

d = {1:2, 2:90, 3: 50}

mx = max(d.values())

mn = min(d.values())

print('Maximum Value is',mx)

print('Minimum Value is', mn)

OUTPUT

You might also like