comefrom: <doocs>1432.Max Difference You Can Get From Changing an Integer_1.py
code: def maxDiff( num: int) -> int:
      a, b = str(num), str(num)
      for c in a:
          if c != '9':
              a = a.replace(c, '9')
              break
      for i, c in enumerate(b):
          if i == 0:
              if c != '1':
                  b = b.replace(c, '1')
                  break
          else:
              if c != '0' and c != b[0]:
                  b = b.replace(c, '0')
                  break
      return int(a) - int(b)
masked: def sample_funcname ( var_0 : int ) -> int :
      var_3 , var_4 = str ( var_0 ) , str ( var_0 )
      for var_5 in var_3 :
          if var_5 != '9' :
              var_3 = var_3.replace ( var_5 , '9' )
              break
      for var_9 , var_5 in enumerate ( var_4 ) :
          if var_9 == 0 :
              if var_5 != '1' :
                  var_4 = var_4.replace ( var_5 , '1' )
                  break
          else :
              if var_5 != '0' and var_5 != var_4 [ 0 ] :
                  var_4 = var_4.replace ( var_5 , '0' )
                  break
      return int ( var_3 ) - int ( var_4 )
  