Sep-24-2021, 11:42 AM
Do you want them as a single string with a space between each string item of the list?
items = ['w_A', 'w_C', 'w_B', 'mr1', 'mt1', 'ph1'] joined_items = ' '.join(items) print(joined_items)
Output:w_A w_C w_B mr1 mt1 ph1