def clean_noise(output_string):
 for noise in NOISE:
  output_string = output_string.replace((noise + '\n'), '')
  output_string = output_string.replace(noise, '')
 return output_string

def clean_noise ( output_string ) : for noise in NOISE : output_string = output_string . replace ( ( noise + '\n' ) , '' ) output_string = output_string . replace ( noise , '' ) return output_string
removes useless noise from the output .