def assertSameLength(a, b):
    """
    Generate an error if the arguments do not have the same length
    """
    assert len(a) == len(b), 'Error: lists must have same length' + str(a
        ) + str(b)
