On 28 October 2014 00:36, Denis McMahon <denismfmcma...@gmail.com> wrote: > > d = [[list(range(1,13))[i*3+j] for j in range(3)] for i in range(4)]
A quick note. Ranges (even 2.7's xrange) are all indexable. The cast to a list isn't needed. -- https://mail.python.org/mailman/listinfo/python-list