You are viewing a single comment's thread. Return to all comments →
python
import textwrap def encryption(s): string = s.replace(" ", "") column = math.ceil(math.sqrt(len(string))) grid = textwrap.wrap(string, column) encoded = "" for i in range(column): for value in grid: try: encoded += value[i] except IndexError: continue encoded += " " return encoded.rstrip()
Seems like cookies are disabled on this browser, please enable them to open this website
Encryption
You are viewing a single comment's thread. Return to all comments →
python