Convert the dictionary below to JSON and write it to the file colors.json.
Json module
Colors
Report a typo
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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.