Contact: aviboots(AT)netvision.net.il
39,926 questions
51,859 answers
573 users
lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] to_remove = ['6', '3', '0'] lst = [d for d in lst if not any(rd in to_remove for rd in str(d))] print(lst) ''' run: [1, 2, 4, 5, 7, 8, 9] '''