[Tutor] IndexError and appending to lists [Was: Re: Need Help on Assignment]

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Wed Aug 24 07:29:31 CEST 2005



> input = open('/home/tom/Python/Input/SPY3.txt', 'r')
> N=0
> s = 'boo'
> date =[]
> T = [0,0,0,0,0,0]               #don't know why this is necessary
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Ok, let's talk about that comment there.  Why six zeros?



More information about the Tutor mailing list