How would you insert a whitespace into a string after every nth term. I need the output to still be a string, not a list.
This is what i would want it to look like:
message = ("xxxxxxxxxxxx")
output = ("xxxxx xxxxx xx") #E.g every 5 characters
*edit my question doesn't involve lists, only strings