[Tutor] Creating Sudoku

W W srilyk at gmail.com
Mon Apr 7 21:37:15 CEST 2008


On Mon, Apr 7, 2008 at 10:53 AM, Luke Paireepinart
<rabidpoobear at gmail.com> wrote:
>  Also, did you test the code that "generates an error?"
>  It works fine for me.
>  >>> foo = {'1a': 'b'}
>  >>> foo['2b'] = 0
>  >>> print foo['2b']
>  0
>  >>>

You're missing 4 spaces in front of foo['2b'] = 0, and hence, an error :P


-- 
To be considered stupid and to be told so is more painful than being
called gluttonous, mendacious, violent, lascivious, lazy, cowardly:
every weakness, every vice, has found its defenders, its rhetoric, its
ennoblement and exaltation, but stupidity hasn't. - Primo Levi


More information about the Tutor mailing list