def formatters(*chained_formatters):
 def formatters_chain(input_string):
  for chained_formatter in chained_formatters:
   input_string = chained_formatter(input_string)
  return input_string
 return formatters_chain

def formatters ( * chained_formatters ) : def formatters_chain ( input_string ) : for chained_formatter in chained_formatters : input_string = chained_formatter ( input_string ) return input_string return formatters_chain
chain formatter functions .