How to remove all the commas from a string in Python

1 Answer

0 votes
s = "python, java, c, c++, php"

s = s.replace(",", "")

print(s)



'''
run:

python java c c++ php

'''

 



answered Jan 30, 2022 by avibootz
...