Why is joining of strings still separated by a comma(separator) ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is joining of strings still separated by a comma(separator) ?

15th May 2020, 3:35 AM
Prasad Satish Ujalambe
2 Answers
+ 2
I think you are talking about python. By the way we can use + also instead of , it will join the whole string
15th May 2020, 3:42 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
you need to split then join if you want remove the commas. assuming you are talking about Python. str = "a,b,c,d,e" str = "".join(str.split(",")) str is now joined without comma
15th May 2020, 3:46 AM
Bahhaⵣ
Bahhaⵣ - avatar