A better format

Report a typo

Print the dogs list that has two dictionaries inside it; your output must be the same as the Sample output.

You can use the pprint() method or the PrettyPrinter constructor. Please, don't change the variable.

Sample Input 1:

Sample Output 1:

[   {   'age': 1,
        'breed': 'Yorkshire',
        'name': 'Max',
        'owners': [   'Susan, '
                      'Camila, '
                      'Paul']},
    {   'age': 4,
        'breed': 'Bulldog',
        'name': 'Duke',
        'owners': [   'Thomas, '
                      'David, '
                      'Lucia']}]
Write a program in Python 3
dogs = [
{
"name": "Max",
"breed": "Yorkshire",
"age": 1,
"owners": ["Susan, Camila, Paul"]
},
{
"name": "Duke",
"breed": "Bulldog",
"age": 4,
"owners": ["Thomas, David, Lucia"]
}
]
___

Create a free account to access the full topic