About Lesson
Changing (updating) Element of Dictionary:-
a={50:’Aman’, 51:’Raman’, 52:’Suman’}
print(a) # {50: ‘Aman’, 51: ‘Raman’, 52: ‘Suman’}
a[52]=”Ankit”
print(a) # {50: ‘Aman’, 51: ‘Raman’, 52: ‘Ankit’}
Changing (updating) Element of Dictionary:-
a={50:’Aman’, 51:’Raman’, 52:’Suman’}
print(a) # {50: ‘Aman’, 51: ‘Raman’, 52: ‘Suman’}
a[52]=”Ankit”
print(a) # {50: ‘Aman’, 51: ‘Raman’, 52: ‘Ankit’}