If both the adjacent characters are '0
' NEW_LINE INDENT if ( s [ i + 1 ] == '0' and s [ i - 1 ] == '0' ) : NEW_LINE INDENT cnt += 1 NEW_LINE i += 2 NEW_LINE DEDENT else : NEW_LINE INDENT i += 1 NEW_LINE DEDENT DEDENT