count secton of data in list

Emile van Sebille emile at fenx.com
Fri Feb 20 18:45:53 EST 2009


brianrpsgt1 wrote:
> 
> def step1(val):
       data2_row = []

>     for d1r in data1_row:
>         if d1r[1] >= val:
>             switch = 0
>             data2_row = d1r[0],d1r[1],d1r[2],switch
               data2_row.append([d1r[0],d1r[1],d1r[2],switch])


HTH,

Emile




More information about the Python-list mailing list