You are viewing a single comment's thread. Return to all comments →
Same idea but a little simpler:
import math s = input() w = int(math.ceil(len(s.strip())**.5)) print(" ".join([s[i::w] for i in range(w)]))
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 →
Same idea but a little simpler: