write a program to create a dictionary namely Dct with 10 keys 0...9,each having same value as 200.update the first and last value by adding 200 to each of them.
in python.
Answers
Answered by
0
Answer:
Dct ={}
for i in range(10) :
Dct[f"{i}"] = 200
Dct["1"] = 200+200
Dct["9"] = 200+200
print (Dct)
Similar questions
Chemistry,
1 month ago
India Languages,
1 month ago
India Languages,
1 month ago
Physics,
3 months ago
Science,
3 months ago
Physics,
9 months ago