dumb newbie list question

Dietmar Lang dietmar at wohnheim.fh-wedel.de
Mon Aug 20 00:49:35 CEST 2001


Hi!

> Maybe this is a naive/stupid question, but is there anyway to grow a list to an
> arbitrary size?  Eg.:
> 
> >>> l = [1, 2, 3]
> >>> l[5] = "x"

I believe l.append("x") ist what you're looking for.

Kudos, Dietmar



More information about the Python-list mailing list