join all words in a list python with space between 1

join all words in a list python with space between

" ".join(my_list)

Here is what the above code is Doing:
1. We’re creating a list of strings called my_list.
2. We’re using the join() method to join the strings in my_list together, with a space in between each string.
3. We’re printing the result.

Similar Posts