Contact: aviboots(AT)netvision.net.il
39,990 questions
51,935 answers
573 users
tpl_tpl = (("aaa", "bbb"), ("ccc", "ddd"), ("eee", "fff")) if (any('eee' in e for e in tpl_tpl)): print("exit") else: print("not exist") ''' run: exit '''
import itertools tpl_tpl = (("aaa", "bbb"), ("ccc", "ddd"), ("eee", "fff")) if ('eee' in itertools.chain(*tpl_tpl)): print("exit") else: print("not exist") ''' run: exit '''