The Python programming language, tutorials, and more

313 385,263 37,062
articles words lines of code

This article covers a useful LLM pattern where you ask the LLM to write code to solve a problem instead of asking it to solve the problem directly.

Today I learned how to inspect a lazy import object in Python 3.15.

Today I learned how to install jupyter properly while using uv to manage tools.

Today I learned how to do multiline input in the REPL using an uncommon combination of arguments for the built-in open.

Learn how to remove extra spaces from a string using regex, string splitting, a fixed point, and itertools.groupby.