Contact: aviboots(AT)netvision.net.il
39,960 questions
51,902 answers
573 users
a_list = [1, 2, 3, 4, 5, 6, 7, 8, 9] even_list = list(filter(lambda x: (x % 2 == 0), a_list)) print(even_list) ''' run: [2, 4, 6, 8] '''