Contact: aviboots(AT)netvision.net.il
39,970 questions
51,912 answers
573 users
lst = [1, 3, 4, 5, 7, 10, 13, 6, 9, 8] s = str(lst).strip('[]') print(s) print(type(s).__name__) ''' run: 1, 3, 4, 5, 7, 10, 13, 6, 9, 8 str '''
lst = ['p', 'y', 't', 'h', 'o', 'n'] s = ''.join(lst) print(s) print(type(s).__name__) ''' run: python str '''
lst = [1, 2, 3, 4, 5, 6, 7] s = ''.join(str(e) for e in lst) print(s) print(type(s).__name__) ''' run: 1234567 str '''
lst = ["python", "c++", "java"] s = " ".join(lst) print(s) print(type(s).__name__) ''' run: python c++ java str '''