Use ''.join
:
xs = ['1', '2', '3']
s="".join(xs)
If the list contains integers, convert the elements to string before joining them:
xs = [1, 2, 3]
s="".join(str(x) for x in xs)
Use ''.join
:
xs = ['1', '2', '3']
s="".join(xs)
If the list contains integers, convert the elements to string before joining them:
xs = [1, 2, 3]
s="".join(str(x) for x in xs)