DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 970,177 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Kamaraj
Kamaraj

Posted on

Easy way to convert a list into a string

Converting the python list to string

Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

a=['1','2','3','4']
s="".join(a)
s
'1234'
type(s)



Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.