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’}
Important Notice:
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’}