Re: [Tutor] Pythonic nested lists

2010-10-04 Thread Alan Gauld
"col speed" wrote HI again, I realise that I should have included more information in the above e-mail. Here goes: a/ I have a 9*9 nested list called "rows", which contains the given numbers in a sudoku puzzle - with "0"s where the blanks go. b/ I create roworder (roworder = [[str(j)+str

[Tutor] Pythonic nested lists

2010-10-04 Thread col speed
Message: 6 Date: Tue, 28 Sep 2010 13:15:26 +0700 From: col speed To: tutor@python.org Subject: [Tutor] Pythonic nested lists Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi all, I've been trying to write a programme that solves sudoku problems for a while n

[Tutor] Pythonic nested lists

2010-09-27 Thread col speed
Hi all, I've been trying to write a programme that solves sudoku problems for a while now. I'm getting close, but would like to ask a few questions about the most pythonic way of doing some things. I've decided to create nested lists (row order, column order and square order) which correspond with