Need help in understanding a python code

silverburgh.meryl at gmail.com silverburgh.meryl at gmail.com
Sat Nov 15 23:41:53 EST 2008


Hi,

I am trying to understand the following line:
# a is an integer array

max([(sum(a[j:i]), (j,i))

Can you please tell me what that means,
I think sum(a[j:i] means find the some from a[j] to a[i]
But what is the meaning of the part (j,i)?




More information about the Python-list mailing list