<doocs>1614.Maximum Nesting Depth of the Parentheses_1.py
def maxDepth( s: str) -> int:
    n = ans = 0
    for c in s:
        if c == '(':
            n += 1
            ans = max(ans, n)
        elif c == ')':
            n -= 1
    return ans
def sample_funcname ( var_0 : str ) -> int :
    var_5 = var_3 = 0
    for var_6 in var_0 :
        if var_6 == '(' :
            var_5 += 1
            var_3 = max ( var_3 , var_5 )
        elif var_6 == ')' :
            var_5 -= 1
    return var_3
