Show the output of the following code: def main(): d = {"red":4, "blue":1, "green":14, "yellow":2} print(d["red"]) print(list(d.keys())) print(list(d.values())) print("blue" in d) print("purple" in d)...


Show the output of the following code:
def main():
d = {"red":4, "blue":1, "green":14, "yellow":2}
print(d["red"])
print(list(d.keys()))
print(list(d.values()))
print("blue" in d)
print("purple" in d)
d["blue"] += 10
print(d["blue"])
main() # Call the main function



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here