dumb newbie list question

Dietmar Lang dietmar at wohnheim.fh-wedel.de
Sun Aug 19 18:49:35 EDT 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