Print

Print a list(array) nicely:

>>> print L
['this', 'is', 'a', ['and', 'a', 'sublist', 'too'], 'list', 'including', 'many', 'words', 'in', 'it'] 
>>> from pprint import pprint 
>>> pprint.pprint(L) 
['this', 'is', 'a', 
    ['and', 'a', 'sublist', 'too'], 
    'list', 
    'including', 
    'many', 
    'words', 
    'in', 
    'it'
]

Search Results