generating list of sub lists
Jesús Carrete Montaña
kuantiko at escomposlinux.org
Sun Sep 16 05:03:49 EDT 2007
cesco wrote:
> l = ['string1', 'string2', 'string3']
l2=[l[:i+1] for i in range(len(l))]
More information about the Python-list
mailing list