How to convert list to string with Python?

Sometimes, we want to convert list to string with Python.

In this article, we’ll look at how to convert list to string with Python.

How to convert list to string with Python?

To convert list to string with Python, we can use the string join method.

For instance, we write

list1 = ['1', '2', '3']
str1 = ''.join(list1)

to call the empty string’s join method with list list1 to return a string that has all the strings in list1 combined into a string.

Conclusion

To convert list to string with Python, we can use the string join method.