Concatenate Item in list to strings

Do you want to know the information regarding “Concatenate Item in list to strings”. If yes, you’re in the correct tutorial.

Concatenate Item in list to strings

>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'

Final Thoughts

I hope this article helps you to know about “Concatenate Item in list to strings”. If you have any questions regarding this tutorial please let us know via the comment section. Share this tutorial with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment