PY
py
1
2
3
4
5
6
7
8
9
10
# not a oneliner, but still pretty short
# for letters and boxes challenge
import random
l = [chr(i) for i in range(97, 102)]
print("\n [{}]".format("][".join(l)))
[(lambda ls: ls if ls.remove(random.choice(ls)) is None and random.shuffle(ls) is None and len(ls) > 1 else ls)(l) and print(" [" + "][".join(l) + "]") for _ in range(4)]
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run