News

Without functions: by repeatedly writing the code to draw a triangle with. With a Python function call: by generating lots of coordinates and feeding them to your “draw triangle” function.
Working with files in Python is pretty easy. But there’s a common mistake that can sneak into your code. Not closing the file ...
Functions that rely on something outside the function itself (e.g., a network call, or a read from disk) are harder to memoize, though it can still be done.
When using ASGI, you’ll want to use async functions, and async-friendly libraries, as much as possible. It pays to get in the habit of using async, because the problems with using sync-only code ...