def order_rainbow(s):
 colors_shuffle = [(globals()[i.encode('utf8')] if (not str(i).isdigit()) else term_color(int(i))) for i in c['CYCLE_COLOR']]
 colored = [colors_shuffle[(i % 7)](s[i]) for i in xrange(len(s))]
 return ''.join(colored)

def order_rainbow ( s ) : colors_shuffle = [ ( globals ( ) [ i . encode ( 'utf8' ) ] if ( not str ( i ) . isdigit ( ) ) else term_color ( int ( i ) ) ) for i in c [ 'CYCLE_COLOR' ] ] colored = [ colors_shuffle [ ( i % 7 ) ] ( s [ i ] ) for i in xrange ( len ( s ) ) ] return '' . join ( colored )
print a string with ordered color with each character .