A 6700
B 5600
C sooo
D 5000
Write code to modify
the amount of section A as 7600 C and D as 7000. Print
the changed object.
Answers
Answered by
1
nums = {
"a": 6700,
"b": 5600,
"c": 5000,
"d": 5000
}
nums["a"] = 7600
for k, v in nums.items():
if nums[k] == 5000:
nums[k] = 7000
print(nums)
#Above solution is in python 3
Similar questions