<garvit244>301_1.py
def isValid(s):
    count = 0
    for char in s:
        if char == '(':
            count += 1
        elif char == ')':
            count -= 1
        if count < 0:
            return False
    return (count==0)
def sample_funcname ( var_0 ) :
    var_2 = 0
    for var_3 in var_0 :
        if var_3 == '(' :
            var_2 += 1
        elif var_3 == ')' :
            var_2 -= 1
        if var_2 < 0 :
            return False
    return ( var_2 == 0 )
