Use the join operator to concatenate strings in a list.
str = ["devx", "is", "for", "developers"] str = (" ".join(str))