#NEWLINE# def get_color_for_nbr_days( nbr_days ) : #NEWLINE# #INDENT# ' ' #NEWLINE# if ( nbr_days < 5 ) : #NEWLINE# #INDENT# color_string = 'green' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( color_string >= 5 ) and ( nbr_days < 10 ) ) : #NEWLINE# #INDENT# color_string = 'orange' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# color_string = 'red' #NEWLINE# #UNINDENT# #UNINDENT# return color_string