In python, I have a list that should have one and only one truthy value (that is, bool(value) is True). Is there a clever way to check for this
bool(value) is True
Is this what you're looking for?
sum(l) == 1