def validate_table(table_text, font_colors):
 font_colors_len_options = [1, 3, len(table_text)]
 if (len(font_colors) not in font_colors_len_options):
  raise exceptions.PlotlyError('Oops, font_colors should be a list of length 1, 3 or len(text)')

def validate_table ( table_text , font_colors ) : font_colors_len_options = [ 1 , 3 , len ( table_text ) ] if ( len ( font_colors ) not in font_colors_len_options ) : raise exceptions . PlotlyError ( 'Oops, font_colors should be a list of length 1, 3 or len(text)' )
table-specific validations check that font_colors is supplied correctly (1 .