Why sorting an array makes a Python loop faster

This morning I ran across a blog post that presented two Python scripts, one of which was much more efficient than the other. The blog post has since been deleted so I can’t link to it, but t…

Similar

Top Python libraries of 2016

Last year, we did a recap with what we thought were the best Python libraries of 2015, which was widely shared within the Python community (see post in r/Python). A year has gone by, and again it is time to give due credit for the awesome work that has be...

Read more »

Playing Games with Python

I’ve been working for a while now on a bot that plays video games. I needed a way to capture the screen and send input to the game that was fast enough to let a bot interact with it in real time. I… (more…)

Read more »