The example in the documentation works.

It should look like this:

>>> import pprint
>>> t = [[[['black', 'cyan'], 'white', ['green', 'red']], [['magenta',
... 'yellow'], 'blue']]
...
>>> pprint.pprint(t, width=30)

Your example does not. It is missing one "]".

Mariatta Wijaya