• + 0 comments
    def encryption(s):
        num_col = math.ceil(math.sqrt(len(s)))
        return ' '.join(''.join(s[i] for i in range(c, len(s), num_col)) for c in range(num_col))