I'm new to python and need to create a list with a negative index but have not been successful so far.
I'm using this code:
a = []
for i in xrange( -20, 0, -1 ):a[i] = -(i)log.info('a[{i}]={v}'.format(i=i, v=a[i]))
else:log.info('end')
and getting the log output as
end
Incidentally I'm using a site call quantopian so the log.info is from their infrastructure and just print out the output into a web console.
What am I doing wrong?
Thanks in advance for your help.