s = "BINGO" print(" ".join(s))
import re pat = re.compile(r"([.()!])") print (pat.sub(" \\1 ", string)) # hello . . . ( world ) !