You are viewing a single comment's thread. Return to all comments →
Python 3
def encryption(s): s = s.replace(" ","") length = len(s) columns = math.ceil(length**0.5) encrypted_s = ["" for i in range(columns)] for i in range(length): encrypted_s[i%columns] += s[i] return " ".join(encrypted_s)
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 3