• + 3 comments
    def encryption(s):
        c = math.ceil(math.sqrt(len(s)))
    
        p = ' '.join(map(lambda x: s[x::c], range(c)))
    
        return p