I don’t know if there is any shorter way to do this question. On my code, I create a new variable and also use for loop
to add a dot or dash after each index of the string
newVariable = ‘ ‘
for index in theString:
Inside the loop, I use concatenation and add each of the new index to be inside of my new variable. At the end, in the return statement, I add another dot or dash before my new variable.