comefrom: <doocs>2288.Apply Discount to Prices_1.py
code: def discountPrices( sentence: str, discount: int) -> str:
      ans = []
      for w in sentence.split():
          if w[0] == '$' and w[1:].isdigit():
              t = int(w[1:]) * (1 - discount / 100)
              ans.append('$' + '{:.2f}'.format(t))
          else:
              ans.append(w)
      return ' '.join(ans)
masked: def sample_funcname ( var_0 : str , var_2 : int ) -> str :
      var_4 = [ ]
      for var_6 in var_0.split ( ) :
          if var_6 [ 0 ] == '$' and var_6 [ 1 : ].isdigit ( ) :
              var_12 = int ( var_6 [ 1 : ] ) * ( 1 - var_2 / 100 )
              var_4.append ( '$' + '{:.2f}'.format ( var_12 ) )
          else :
              var_4.append ( var_6 )
      return ' '.join ( var_4 )
  