XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

@trey.io - Trey Hunner

Python & Django team trainer I help folks sharpen their Python skills with https://PythonMorsels.com 🐍πŸͺ I also blog at https://treyhunner.com & run https://Whereabouts.Earth PSF Fellow. YIMBY. 95% vegan.

My ninth annual compilation of Python-related Black Friday & Cyber Monday sales is now published. I now know of 6 sales

My ninth annual compilation of Python-related Black Friday & Cyber Monday sales is now published. I now know of 6 sales that are currently live or coming up. If you hear of a sale related to Python learning that isn't on the list, let me know. https://treyhunner.com/2026/11/python-black-friday-and-cyber-monday-sales-2026/

Python Tip #327 (of 365): Loop over neighboring items with pairwise. 🧡 Do this: for day, next_day in pairwise(days): pr

Python Tip #327 (of 365): Loop over neighboring items with pairwise. 🧡 Do this: for day, next_day in pairwise(days): print(day, next_day) Not this: iterator = iter(days) day = next(iterator) for next_day in iterator: print(day, next_day) day = next_day #Python #DailyPythonTip https://pym.dev/avoid-indexes-in-python/#other-looping-helpers-to-help-avoid-indexing

Python Tip #326 (of 365): When you don't care about a dictionary's values, use a set instead. 🧡 Finding yourself making

Python Tip #326 (of 365): When you don't care about a dictionary's values, use a set instead. 🧡 Finding yourself making a dictionary where the values are the same as the keys? color_options = {"purple": "purple", "blue": "blue", "green": "green"} #Python #DailyPythonTip https://pym.dev/practical-uses-of-sets/#sets-are-like-dictionaries-without-values

Python Tip #325 (of 365): Avoid returning defaultdict objects. 🧡 A defaultdict is handy while building a dictionary: by

Python Tip #325 (of 365): Avoid returning defaultdict objects. 🧡 A defaultdict is handy while building a dictionary: by_color = defaultdict(list) for item in items: by_color[item.color].append(item‍.name) But once you're done, it'll keep auto-creating missing keys. #Python #DailyPythonTip https://pym.dev/default-dictionary-values/

Python Tip #324 (of 365): Sort a dictionary with dict(sorted(d.items())). 🧡 >>> counts = {"sandwiches": 10, "drinks": 2

Python Tip #324 (of 365): Sort a dictionary with dict(sorted(d.items())). 🧡 >>> counts = {"sandwiches": 10, "drinks": 20, "oranges": 7} >>> dict(sorted(counts.items())) {'drinks': 20, 'oranges': 7, 'sandwiches': 10} #Python #DailyPythonTip https://treyhunner.com/2021/11/how-to-sort-a-dictionary-in-python/

Python Morsels lifetime access is back on sale for the next week. Lifetime access is best for folks who Python regularly

Python Morsels lifetime access is back on sale for the next week. Lifetime access is best for folks who Python regularly and hope to improve their skills year over year. If you haven't tried Daily Recall yet, check out the quick demo on the sales page. Sale ends Monday, Nov 30. #Python https://pym.dev/lifetime-access-sale?utm_source=bluesky&utm_campaign=bf26-social

It feels like forever since I've had 5 greens. Whereabouts Daily πŸ—ΊοΈ November 19, 2026 5/5 countries in 5/13 guesses 🟒🟒🟒🟒🟒 whereabouts.earth/daily/ #Whereabouts https://whereabouts.earth/daily/

Python Tip #320 (of 365): Use "in" to check whether a dictionary has a key. 🧡 Do this: if color not in quantities: prin

Python Tip #320 (of 365): Use "in" to check whether a dictionary has a key. 🧡 Do this: if color not in quantities: print(f"Uh oh! There's no value for {color}") Not this: if not quantities.get(color): print(f"Uh oh! There's no value for {color}") #Python #DailyPythonTip https://pym.dev/using-dictionaries-in-python/#key-check