How can I convert a list into a space-separated string in Python?
For example, I want to convert this list:
my_list = [how,are,you]
I'll throw this in as an alternative just for the heck of it, even though it's pretty much useless when compared to " ".join(my_list) for strings. For non-strings (such as an array of ints) this may be better:
" ".join(my_list)
" ".join(str(item) for item in my_list)