comefrom: <doocs>1796.Second Largest Digit in a String_1.py
code: def secondHighest( s: str) -> int:
      largest_digit = second_largest_digit = -1
      for c in s:
          if c.isdigit():
              num = int(c)
              if num > largest_digit:
                  second_largest_digit, largest_digit = largest_digit, num
              elif num > second_largest_digit and num < largest_digit:
                  second_largest_digit = num
      return second_largest_digit
masked: def sample_funcname ( var_0 : str ) -> int :
      var_5 = var_3 = - 1
      for var_6 in var_0 :
          if var_6.isdigit ( ) :
              var_8 = int ( var_6 )
              if var_8 > var_5 :
                  var_3 , var_5 = var_5 , var_8
              elif var_8 > var_3 and var_8 < var_5 :
                  var_3 = var_8
      return var_3
  