Write Python3 code to demonstrate working of Check if tuple has any None value using any() + map() + lambda
Topic: Write Python3 code to demonstrate working of Check if tuple has any None value using any() + map() + lambda
Solution
test_tup = (10, 4, 5, 6, None) res = any(map(lambda ele: ele is None, test_tup)) print("Does tuple contain any None value ? : " + str(res))
List all Python Programs