Sequence of empty lists

Paul Rubin http
Tue Feb 22 08:57:37 EST 2005


ccjpb at shark.cse.bris.ac.uk (JP. Baker) writes:
> How *should* I create a sequence of N empty lists (buckets)?

a = [[] for i in xrange(N)]



More information about the Python-list mailing list