You can use
nones = not all(d.values())
If all values are not None, nones would be set to False, else True. It is just an abstraction though, internally it must iterate over values list.
You can use
nones = not all(d.values())
If all values are not None, nones would be set to False, else True. It is just an abstraction though, internally it must iterate over values list.