Fruit Dictionary
(1) Create a Python Dictionary named fruit_color with three keys: "watermelon", "mango", and "strawberry". Their values are "green", "yellow", and "red", respectively.
(2) Add a new key "mandarin" with its value "orange" to the dictionary.
(3) Remove the key "mango" from the dictionary.
(4) Use a for loop to iterate over all the key-value pairs in the dictionary, and print out all the key-value pairs, each key-value pair in one line. Format: key : value. Example (order may be different):
watermelon :
green
mandarin : orange
strawberry : red
fruit_color = {"watermelon":"green","mango":"yellow","strawberry":"red"}
fruit_color["mandarin"] = "orange"
del fruit_color["mango"]
for x in fruit_color.keys():
print(x,":",fruit_color[x])
Fruit Dictionary (1) Create a Python Dictionary named fruit_color with three keys: "watermelon", "mango", and "strawberry"....