I need to split this string into specific word order. I need to add comma after each word. I'm completely new to python. This is the closest I have got, but it adds space after every comma. How can I get rid of the extra space?
words = ('Hann Tumi fer á fætur').split()
print(words[3],',',words[0],',',words[2],',',words[4],',',words[1])
result:
á , Hann , fer , fætur , Tumi