Contact: aviboots(AT)netvision.net.il
39,885 questions
51,811 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] '''