[Python] Using textwrap to insert string every nth character
#!/usr/bin/python #This is mainly to also test Google Prettify ;) import textwrap plaintext = raw_input(“plaintext: “) InsertWhat = raw_input(“Insert: “) InsertEvery = raw_input(“Nth char: “) print InsertWhat.join(textwrap.wrap(plaintext, int(InsertEvery)))












