Do you use Python, but sometimes feel stuck? Do you visit Stack Overflow every time you want to solve a problem? Do you wish that you understood how to use advanced techniques, such as generators and decorators, better? If so, then good news: I’m opening a new cohort of Weekly ...
Let’s say that we create a new, empty Python dictionary: >>> d = {} How much memory does this new, empty dict consume? We can find out with “sys.getsizeof“: >>> import sys>>> sys.getsizeof(d)240 In other words, our dictionary, with nothing in it at all, consumes 240 bytes. Not bad; given ...
If you are a relative beginner to Python, and want to improve your understanding of functions and modules, then there’s no better way to do so than practice. Weekly Python Exercise provides you with that practice, with a family of six 15-week courses. In each course, you get a question ...
If you’ve just finished a Python course or book, then you might feel a bit nervous about your Python knowledge. You might be wondering how you can become a master Python developer, solving problems without turning to Stack Overflow every few minutes. The good news is that you can improve! ...
I was delighted to appear on the popular “Talk Python to Me” podcast, run by Michael Kennedy. In the podcast, I talk about teaching, learning, and teaching Python to companies. If you’re interested in how to learn better or teach better, then I think you’ll enjoy this episode! The episode ...
The good news: I gave a talk on Friday morning, at PyCon 2019, called “Practical decorators.” The better news: It was a huge crowd, and people have responded very warmly to the talk. Thanks to everyone at PyCon who came to talk to me about it! However: Several people, at ...