What is the best/most efficient way to check if all tuple values? Do I need to iterate over all tuple items and check or is there some even better way?
For example:
t1 = (1, 2, 'abc')
t2 = ('', 2, 3)
t3 = (0.0, 3, 5)
t4 = (4, 3, None)
Checking these tuples, every tuple except t1
, should return True, meaning there is so called empty value.
P.S. there is this question: Test if tuple contains only None values with Python, but is it only about None values