I have a list:
my_list = ["h", "e", "l", "l", o"]
What I would like to have is:
new_list = ["hello"]
I have a list:
my_list = ["h", "e", "l", "l", o"]
What I would like to have is:
new_list = ["hello"]
my_list = ["h", "e", "l", "l", "o"]
result = ''.join(my_list)
my_list.clear()
my_list.append(result)
print(my_list)
This will output the result:
['hello']