Contact: aviboots(AT)netvision.net.il
39,864 questions
51,786 answers
573 users
lst = ['python', None, 23, 3.14, 'c++', 'c', None] lst = ['***' if i is None else i for i in lst] print(lst) ''' run: ['python', '***', 23, 3.14, 'c++', 'c', '***'] '''