How to convert list to string

You can use the join() method to convert a list of strings to a single string. The join() method takes one parameter, which is the delimiter that separates the elements of the list in the resulting string. Here's an example:

list_of_strings = ["Hello", "world"]
result_string = " ".join(list_of_strings)
print(result_string) # "Hello world"

Watch a course Python - The Practical Guide

In this example, the delimiter is a space character, so the resulting string will have a space between the words "Hello" and "world". You can use any delimiter you want, including an empty string to join the list elements without any delimiter.