to check the length of remaining array after last zeroindex
if ( N - zeroindex [ len ( zeroindex ) - 1 ] \ - 1 > maxlen ) : NEW_LINE INDENT maxlen = N - zeroindex [ len ( zeroindex ) - 1 ] - 1 NEW_LINE DEDENT print ( maxlen ) NEW_LINE