def validate(points: List[data_model.BulletPoint]) -> List[str]: error_messages = [] if len(points) != n_points: error_messages.append(f"You wrote {len(points)} points, not {n_points}") for bulletno, bullet in enumerate(points): num_title_words = len(bullet.title.split()) if num_title_words > 10: error_messages.append(f"The title of bullet no {bulletno+1} is too long") num_bullet_words = len(bullet.explanation.split()) if num_bullet_words > 200: error_messages.append(f"The explanation in bullet no {bulletno+1} is too long") return error_messages error_messages = validate(result.output)