def print_trends(trends):
 for topic in trends[:c['TREND_MAX']]:
  name = topic['name']
  url = topic['url']
  line = ((cycle_color(name) + ': ') + color_func(c['TREND']['url'])(url))
  printNicely(line)
 printNicely('')

def print_trends ( trends ) : for topic in trends [ : c [ 'TREND_MAX' ] ] : name = topic [ 'name' ] url = topic [ 'url' ] line = ( ( cycle_color ( name ) + ': ' ) + color_func ( c [ 'TREND' ] [ 'url' ] ) ( url ) ) printNicely ( line ) printNicely ( '' )
display topics .