#the list to make an string format a = ['h','e','l','l','o','','w','o','r','l','d','!']
#wanted output
hello world!
#the list to make an string format a = ['h','e','l','l','o','','w','o','r','l','d','!']
#wanted output
hello world!
It seems some suggestions was given above about how to solve this problem. An approach that can be taken though is creating a empty string variable and concatenating all the characters from the given character list to the string variable. For example,
a = ['h','e','l','l','o','','w','o','r','l','d','!']
temp_string = ""
for eachChar in a:
temp_string += eachChar
print(temp_string)
The output of this result to
helloworld!
This is due to the null character between hello and world. If the null character was instead a space such as ['h','e','l','l','o',' ','w','o','r','l','d','!'], the output will result to what you have displayed above.