Settings

Report a typo

Max has Python 3.7 on his machine. He decided to start learning the pprint library and its features. Right now, he is working with the following dictionary:

cars = [
    {
        "id": 234,
        "model": "Honda Civic",
        "color": "Black",
        "transmission": "Automatic",
        "doors": 4,
    },
    {
        "id": 783,
        "model": "BMW X5",
        "color": "Blue",
        "transmission": "Automatic",
        "doors": 2,
    }
]

He wants to print using the pprint library, and he ends up with the following code:

pprint(cars, indent=2, sort_dicts=False)

What will be the output of his code?

Select one option from the list
___

Create a free account to access the full topic