I need to insert a space after a certain number of characters per line. The text is a sentence without spaces, and it must be separated by spaces after each n characters.
therefore there must be something like this.
thisisarandomsentence
and I want it to return as:
this isar ando msen tenc e
function that I have:
def encrypt(string, length):
Is there any way to do this in python?
user15697
source share