[Tutor] dynamic arrays?

Steven D'Aprano steve at pearwood.info
Mon Sep 27 19:52:23 CEST 2010


On Tue, 28 Sep 2010 02:12:55 am Joel Goldstick wrote:

> a=[]
> i=0
> for l in open("file.txt", "r"):
>  a[i]=l
>   i+=1

Did you try it before posting?



-- 
Steven D'Aprano


More information about the Tutor mailing list