I have a list L of elements, say natural numbers. I want to print them in one line with a single space as a separator. But I don\'t w
L
Joining elements in a list space separated:
word = ["test", "crust", "must", "fest"] word.reverse() joined_string = "" for w in word: joined_string = w + joined_string + " " print(joined_string.rstrim())