Write Python3 code to demonstrate working of Check if tuple has any None value using not + all()


Topic: Write Python3 code to demonstrate working of Check if tuple has any None value using not + all()

Solution

test_tup = (10, 4, 5, 6, None) 
print("The original tuple : " + str(test_tup))  
res = not all(test_tup) 
print("Does tuple contain any None value ? : " + str(res)) 



List all Python Programs