Colors

Report a typo

Convert the dictionary below to JSON and write it to the file colors.json.

Write a program in Python 3
import json


colors = {"rainbow": ["red", "orange", "yellow", "green", "blue", "indigo", "violet"],
"CMYK": ["cyan", "magenta", "yellow", "key color"],
"RBG": ["red", "blue", "green"]}

# write your code here
___

Create a free account to access the full topic