Given the following json file, create a Python program that reads the file and outputs an XML file that groups car data appropriately. { "cars": [ { "make": "Honda", "model": "Accord", "color": "White", "engine": "I4", "transmission": "Automatic", "price": 22756.0 }, { "make": "Chevrolet", "model": "Bolt EV", "color": "Gray", "engine": "Not Specified", "transmission": "Automatic", "price": 39551.0 }, { "make": "Dodge", "model": "Challenger", "color": "Gray", "engine": "V6", "transmission": "Automatic", "price": 32216.0 } ] }
Given the following json file, create a Python program that reads the file and outputs an XML file that groups car data appropriately.
{
"cars": [
{
"make": "Honda",
"model": "Accord",
"color": "White",
"engine": "I4",
"transmission": "Automatic",
"price": 22756.0
},
{
"make": "Chevrolet",
"model": "Bolt EV",
"color": "Gray",
"engine": "Not Specified",
"transmission": "Automatic",
"price": 39551.0
},
{
"make": "Dodge",
"model": "Challenger",
"color": "Gray",
"engine": "V6",
"transmission": "Automatic",
"price": 32216.0
}
]
}
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images