« * K @trey.io
1 Python Tip #328 (of 365): Use a linter and an auto-formatter. 🧵 Linters are st…
@trey.io
2 “Python 3.15 also includes even more improvements to error messages, and many o…
@trey.io
3 🗺️ November 24, 2026 5/5 countries in 8/13 guesses 🟢🟢🟢🟡🟠 whereabouts.eart…
@trey.io
4 My ninth annual compilation of Python-related Black Friday & Cyber Monday sales…
@trey.io
5 Need more than 2 items at a time? The itertools docs also include a sliding_win…
@trey.io
6 Note that pairwise will pair up the last 2 items but the last item has nothing …
@trey.io
7 It's handy for comparing each item to the next one, like how much temperature c…
@trey.io
8 pairwise gives us each item paired with the one after it: >>> from itertools im…
@trey.io
9 Python Tip #327 (of 365): Loop over neighboring items with pairwise. 🧵 Do this…
@trey.io
# MoreBack a pageBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup