How to make a comma separated string from a list of strings in Python

1 Answer

0 votes
lst = ['python', 'php', 'c++', 'c', 'java']

s = ','.join(lst)

print(s)

  
  
  
'''
run:
  
python,php,c++,c,java
                
'''

 



answered May 16, 2020 by avibootz

Related questions

...