Solving Quartiles with Python (`itertools.permutations`)
Solving Quartiles with Python Quartiles is a fun game that was introduced to Apple's News+ ( https://www.apple.com/newsroom/2024/05/apple-news-plus-introduces-quartiles-a-new-game-and-offline-mode-for-subscribers/) . It involves matching tiles containing letters to words. While fun to play, it's also fun to solve with Python. This blog post will introduce how to solve the game with Python. If you haven't been using Astral's uv package, check it out. Otherwise use Python's pip to install nltk to allow finding the words in English. This can be done by either: uv add nltk or pip install nltk Now for the fun part! Create a script, such as main.py to include your setup. # main.py from itertools import permutations tiles = ['ary', 'tion', 'rou', 'ed', 'pes', 'gh', 'ant', 'tig', 'des', 'ta', 'ly', 'olu', 'ro', 'ur', 'pi', 'ht', 'res...