Need help in understanding a python code
clp at rebertia.com
Sun Nov 16 05:54:05 CET 2008
On Sat, Nov 15, 2008 at 8:41 PM, silverburgh.meryl at gmail.com
<silverburgh.meryl at gmail.com> wrote:
> I am trying to understand the following line:
> # a is an integer array
> max([(sum(a[j:i]), (j,i))
This code isn't valid. You have a [ with no closing ].
Follow the path of the Iguana...
> 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