Why does not pprint work?
rosuav at gmail.com
Tue Jul 22 23:49:53 CEST 2014
On Wed, Jul 23, 2014 at 7:42 AM, fl <rxjwg98 at gmail.com> wrote:
> I enter the example lines of that website:
> import pprint
> board = [ *8 ] * 8
Flaw in the blog post: he didn't actually specify the import line.
What you actually want is this:
from pprint import pprint
Or use pprint.pprint(board), but you probably don't need anything else
from the module.
Ned, if you're reading this: Adding the import would make the post clearer. :)
More information about the Python-list