def has_code(line: str) -> bool:
    """
    Return True if there's code on the line
    (so it's not a comment or an empty line).
    """
    return not line.strip().startswith("#") or (line.strip() == "")