Contact: aviboots(AT)netvision.net.il
39,948 questions
51,890 answers
573 users
lst = ['a', 'b', 'c', 'd'] print(','.join(lst)) ''' run: a,b,c,d '''
lst = ['a', 'b', 'c', 'd'] print(*lst, sep = ',') ''' run: a,b,c,d '''
lst = ['a', 'b', 'c', 'd'] print(str(lst)[1:-1]) ''' run: 'a', 'b', 'c', 'd' '''
lst = ['a', 'b', 'c', 'd'] print("," . join([str(a) for a in lst])) ''' run: a,b,c,d '''