#NEWLINE# def toggle_all_lights_color( lan , interval = 0.5 , num_cycles = 3 ) : #NEWLINE# #INDENT# rapid = ( True if ( lan < 1 ) else False ) #NEWLINE# for i in range ( num_cycles ) : #NEWLINE# #INDENT# lan . set_color_all_lights ( BLUE , rapid = rapid ) #NEWLINE# sleep ( interval ) #NEWLINE# lan . set_color_all_lights ( GREEN , rapid = rapid ) #NEWLINE# sleep ( interval )