[newbie] Recursive algorithm - review

Wiktor look at signature.invalid
Sat Jan 4 06:23:55 EST 2014


On Fri, 03 Jan 2014 20:47:16 -0500, Terry Reedy wrote:

> [0]*size] is fine for one row
> 
> towers = [[0]*size] for i in range(size)]
> 
> should do what you want for a 2-d array instead of the above.

  Right. Thank you also.

-- 
Best regards,     Wiktor Matuszewski
'py{}@wu{}em.pl'.format('wkm', 'ka') # email spam trap



More information about the Python-list mailing list