How to convert list to comma-separated string in Python

1 Answer

0 votes
lst = ("python", "java", "c++", "c", "c#")

s = ",".join(lst)

print(s)



'''
run:

python,java,c++,c,c#

'''

 



answered Jun 23, 2021 by avibootz

Related questions

...