# Write a Python program to Extract digits from Tuple list # Python3 code to demonstrate working of# Extract digits from Tuple list# Using map() + chain.from_iterable() + set() + loopfrom itertools import chain# initializing listtest_list = [(15, 3), (3, 9), (1, 10), (99, 2)]# printing original listprint("The original list is : " + str(test_list))# Extract digits from Tuple list# Using map() + chain.from_iterable() + set() + looptemp = map(lambda ele: str(ele), chain.from_iterable(test_list))res = set()for sub in temp:    for ele in sub:        res.add(ele)# printing resultprint("The extracted digits : " + str(res))