Python | Converting the characters list into a string
To convert a given list of characters into a string, there are two approaches,
- Using the loop – traverse of the list i.e. extracts characters from the list and add characters to the string.
- Using join() function – a list of characters can be converted into a string by joining the characters of the list in the string.
Method 1:
Output
Method 2:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer