comefrom: <doocs>0415.Add Strings_1.py
code: def addStrings( num1: str, num2: str) -> str:
      i, j, carry = len(num1) - 1, len(num2) - 1, 0
      ans = []
      while i >= 0 or j >= 0 or carry:
          carry += (0 if i < 0 else int(num1[i])) + (0 if j < 0 else int(num2[j]))
          carry, v = divmod(carry, 10)
          ans.append(str(v))
          i, j = i - 1, j - 1
      return ''.join(ans[::-1])
masked: def sample_funcname ( var_0 : str , var_2 : str ) -> str :
      var_5 , var_6 , var_8 = len ( var_0 ) - 1 , len ( var_2 ) - 1 , 0
      var_9 = [ ]
      while var_5 >= 0 or var_6 >= 0 or var_8 :
          var_8 += ( 0 if var_5 < 0 else int ( var_0 [ var_5 ] ) ) + ( 0 if var_6 < 0 else int ( var_2 [ var_6 ] ) )
          var_8 , var_13 = divmod ( var_8 , 10 )
          var_9.append ( str ( var_13 ) )
          var_5 , var_6 = var_5 - 1 , var_6 - 1
      return ''.join ( var_9 [ : : - 1 ] )
  