Write a Python program to convert a list of characters into a string


This program creates a list of characters called 's'. Then it uses the join function to concatenate all the elements in the list 's' and assigns it to a variable 's1'. Finally it prints the variable 's1', which is a string that is formed by joining all the characters in the list 's'.

Source Code

s = ['T','u','t','o','r',' ','J','o','e','s']
s1 = ''.join(s)
print(s1)
 

Output

Tutor Joes

Example Programs