You are viewing a single comment's thread. Return to all comments →
I solved it without arrays, too in Python. A very simple Python3 code aka Python at its best :)
import math def encryption(s): s = s.replace(" ", "") sr = len(s) ** 0.5 # which is square root col = int(sr) if math.ceil(sr) == int(sr) else int(sr)+1 word = '' for i in range(col): p = i while p < len(s): word = word + s[p] p += col word = word + ' ' return word
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 →
I solved it without arrays, too in Python. A very simple Python3 code aka Python at its best :)