# `assert c, message`: the message is computed only when the assertion fails, and the
# failure's report carries it (a str, which may be any text)
def check(count: int, name: str) -> None:
    assert len(name) > 0, "never shown"
    assert count > 0, f"{name} is {count}, not positive ✓"
    print("checked", name, count)


def main() -> None:
    check(3, "apples")
    check(-2, "pears")


if __name__ == "__main__":
    main()
