You are viewing a single comment's thread. Return to all comments →
check this once if you like this answer plz upvote
a=math.floor(math.sqrt(len(s))) b=math.ceil(math.sqrt(len(s))) if not (a*b >= len(s)): a+=1 l=[""]*a k=0 for i in range(a): for j in range(b): if len(s)>k: l[i]+=s[k] k+=1 res="" for i in range(len(l[0])): for j in range(len(l)): try: res+=l[j][i] except:pass res+=" " return res
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 →
check this once if you like this answer plz upvote