Skip to content

Instantly share code, notes, and snippets.

@knzm
Created July 7, 2017 05:00
Show Gist options
  • Save knzm/10fb3b5e34e12f14ad4c8893ccf6d713 to your computer and use it in GitHub Desktop.
Save knzm/10fb3b5e34e12f14ad4c8893ccf6d713 to your computer and use it in GitHub Desktop.
# https://teratail.com/questions/83177
>>> import string
>>> a = string.ascii_lowercase
>>> print("\n".join(
... [" ".join(line)
... for r in [range(i * 16, i * 16 + 16, 1) for i in range(int((len(a) + 15) / 16))]
... for line in [[a[j] for j in r if j < len(a) and (j % 4 < 2)],
... [a[j] for j in r if j < len(a) and (j % 4 >= 2)]]]))
a b e f i j m n
c d g h k l o p
q r u v y z
s t w x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment