Contact: aviboots(AT)netvision.net.il
39,939 questions
51,876 answers
573 users
string = 'python- java- c- -php-- javascript - c++' lst = [word.strip() for word in string.split('-')] print(lst) ''' run: ['python', 'java', 'c', '', 'php', '', 'javascript', 'c++'] '''