Python problem
WIWA
member36136 at dbforums.com
Mon Aug 18 11:21:15 EDT 2003
Hi all,
I'm trying to write the following in python:
j=0
for i in range(len(datumlijst)+1):
if (datumlijst[i+1]!=datumlijst):
datum[j]=datumlijst
j=j+1
print datum[:]
it complains about the part: datumlijst[i+1]!=datumlijst
it produces the following error:
File "hits_per_dag.py", line 24, in ?
datum[j]=datumlijst
IndexError: list assignment index out of range
Anyone know why this happens
--
Posted via http://dbforums.com
More information about the Python-list
mailing list