Contact: aviboots(AT)netvision.net.il
39,939 questions
51,876 answers
573 users
tpl_lst = [('eee', 3),('aaa', 7),('ddd', 1),('bbb', 4),('ccc', 2),('fff', 6)] tpl_lst = [tpl for tpl in tpl_lst if tpl[1] > 3] print(tpl_lst) ''' run: [('aaa', 7), ('bbb', 4), ('fff', 6)] '''