comefrom: <qiyuangong>020_Valid_Parentheses_2.py
code: def isValid( s):
      n = len(s)
      if n == 0:
          return True
      
      if n % 2 != 0:
          return False
      
      while '()' in s or '{}' in s or '[]' in s:
          s = s.replace('{}', '').replace('()', '').replace('[]', '')
      
      if s == '':
          return True
      else:
          return False
masked: def sample_funcname ( var_0 ) :
      var_2 = len ( var_0 )
      if var_2 == 0 :
          return True
      if var_2 % 2 != 0 :
          return False
      while '()' in var_0 or '{}' in var_0 or '[]' in var_0 :
          var_0 = var_0.replace ( '{}' , '' ).replace ( '()' , '' ).replace ( '[]' , '' )
      if var_0 == '' :
          return True
      else :
          return False
  