How can I make a word from all the letters in a string?
For example: (this is my list)
["h","e","l","l","o"]
And I want this as output:
hello
Use the join function which concatenate all the characters/substrings present in the list & return a single string.
name = ["h","e","l","l","o"]
concat_name = "".join(name)
print(concat_name)
Output :
hello