def validate_equal_length(*args):
 length = len(args[0])
 if any(((len(lst) != length) for lst in args)):
  raise exceptions.PlotlyError('Oops! Your data lists or ndarrays should be the same length.')

def validate_equal_length ( * args ) : length = len ( args [ 0 ] ) if any ( ( ( len ( lst ) != length ) for lst in args ) ) : raise exceptions . PlotlyError ( 'Oops! Your data lists or ndarrays should be the same length.' )
validates that data lists or ndarrays are the same length .