[Tutor] list index out of range
Francesco Loffredo
fal at libero.it
Tue Sep 14 16:11:09 CEST 2010
My humble guess: (sure, the full traceback would help A LOT!)
On 09/09/2010 23.52, Todd Ballard wrote:
> y=[daily_solar_radiation["MJ"][0]]
> for i in xrange(0,275):
> y=[daily_solar_radiation["MJ"]][i]+y[i-1] # <--THIS y[i-1] is out of bounds when i=0 !!!
Hope that helps
Francesco
-------------- next part --------------
Nessun virus nel messaggio in uscita.
Controllato da AVG - www.avg.com
Versione: 9.0.851 / Database dei virus: 271.1.1/3132 - Data di rilascio: 09/13/10 08:35:00
More information about the Tutor
mailing list