13. Find the output of the following code fragements, for the following dictionary.
DI= {'Bhuvana': 1, Richard':2, 'Feroz': 20, ‘Abi':40)
a) k="Bhuvana"
V=-10
if k in DI:
D1[k]=v
print(D1)
Answers
Answered by
1
{'Bhuvana': -10, 'Richard': 2, 'Feroz': 20, 'Abi': 40}
The value of key Bhuvana has been updated to -10
Similar questions