Jumping through hoops to prevent loops

For-loops in Python are notoriously slow compared to traditional compiled languages such as C++. This obstacle primarily manifests itself in medium data problems — i.e., data problems that are small enough to fit on a single machine — which then become too...