Last active
July 7, 2017 03:32
-
-
Save azyobuzin/f194e16189c2f7d312fc1793c047f573 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
a = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] | |
print("\n".join(map(lambda x: " ".join(map(lambda x: str(a[x]), filter(lambda x: x is not None, x))), itertools.chain.from_iterable(itertools.zip_longest(itertools.zip_longest(*[filter(lambda x: x % 4 < 2, range(len(a)))]*8), itertools.zip_longest(*[filter(lambda x: x % 4 >= 2, range(len(a)))]*8)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment