DEV Community

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)



Latest comments (0)