Contact: aviboots(AT)netvision.net.il
40,769 questions
53,151 answers
573 users
lst = [5, 12, 8, 9, 0, 1, 2, 4, -6] lstc = [x for x in lst if x > 2 if x % 2 == 0] print(lstc) ''' run: [12, 8, 4] '''