PyTips

A 2-post collection


RSS feed of posts tagged PyTips

PyTips 2 - Use itertools.product to replace nested loops

Nested loops, we all love them. Or do we? Five levels of indentation later you are not so sure. Your code starts to look ugly and you wish there was »

PyTips 1 - Get loop counter with enumerate()

In PyTips I'll be talking about Python features, standard libraries, and interesting packages found on PyPi. The idea is to have a short write up and accompanying code snippets for »