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
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
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor