Contact: aviboots(AT)netvision.net.il
39,844 questions
51,765 answers
573 users
lst_tpl = [('a', 'b'), ('x', 'y', 'z', 'w'), ('c', 'o', 'p')] result = [' '.join(tpl) for tpl in lst_tpl] print (str(result)) ''' run: ['a b', 'x y z w', 'c o p'] '''
lst_tpl = [('a', 'b'), ('x', 'y', 'z', 'w'), ('c', 'o', 'p')] result = list(map(" ".join, lst_tpl)) print (str(result)) ''' run: ['a b', 'x y z w', 'c o p'] '''