W
WIWA
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
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