Contact: aviboots(AT)netvision.net.il
39,914 questions
51,847 answers
573 users
lst = ["python", "java", "c++"] _str = 'python c c++ php java c# go' str_words_lst = _str.split() stayed_words = [word for word in str_words_lst if word.lower() not in lst] _str = ' '.join(stayed_words) print(_str) ''' run: c php c# go '''