python replace new line with space code example Example: add whitespaces between char python s = "BINGO" print(" ".join(s))