« * K @trey.io

Trey Hunner @trey.io

2026-11-24 04:16 UTC

pairwise gives us each item paired with the one after it: >>> from itertools import pairwise >>> days = ["Mon", "Tues", "Wed"] >>> for day, next_day in pairwise(days): ... print(f"{day} today, {next_day} tomorrow") ... Mon today, Tues tomorrow Tues today, Wed tomorrow

A reply in a thread.

0 likes, 0 reposts, 1 replies

3 Next post4 More from @trey.ioBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup