Re: error :list out of range

2007-11-13 Thread Gabriel Genellina
En Tue, 13 Nov 2007 06:23:02 -0300, Beema shafreen <[EMAIL PROTECTED]> escribió: > for k in range(0,len(res_value),3): > check = res_value[k:k+4] > if check[0] < check[4]: > print check > error: File "app.py", line 16, in > if check[0] < check[4]: > IndexErro

error :list out of range

2007-11-13 Thread Beema shafreen
hi everybody, I have written a code to check which is the lowest value in a list my list: ['94', 'A_16_P03647505', '-59', '42', 'A_16_P41573860', '-44', '513', 'A_16_P41573861', '-44', '66', 'A_16_P41573862', '-44', '327', 'A_16_P03647506', '-46', '77', 'A_16_P41573864', '-59',