Skip to content

Instantly share code, notes, and snippets.

@azyobuzin
Last active July 7, 2017 03:32
Show Gist options
  • Save azyobuzin/f194e16189c2f7d312fc1793c047f573 to your computer and use it in GitHub Desktop.
Save azyobuzin/f194e16189c2f7d312fc1793c047f573 to your computer and use it in GitHub Desktop.
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