Important Notice:

Course Content
Dictionary in Python (Chapter-9) M3-R5
About Lesson

Appending Element in Dictionary:-

a={50:’Aman’, 51:’Raman’, 52:’Suman’}

print(a)                                  # {50: ‘Aman’, 51: ‘Raman’, 52: ‘Suman’}

a[53]=”Ankit”

print(a)                                        # {50: ‘Aman’, 51: ‘Raman’, 52: ‘Suman’, 53: ‘Ankit’}

error: Content is protected !!