def _prepend_comments_to_lines(content: str, num_symbols: int = 2) -> str:
    """Generate new string with one or more hashtags prepended to each line."""
    prepend_str = f"{'#' * num_symbols} "
    return "\n".join(f"{prepend_str}{line}" for line in content.splitlines())