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_2 = var_1 = - 1
      for var_3 in var_0 :
          if var_3.isdigit ( ) :
              var_4 = int ( var_3 )
              if var_4 > var_2 :
                  var_1 , var_2 = var_2 , var_4
              elif var_4 > var_1 and var_4 < var_2 :
                  var_1 = var_4
      return var_1
  