Comment Comment by eriktaubeneck I like the solution, but I usually keep "The Zen of Python" in mind when writing 'Pythonic' code. parent eriktaubeneck 12 years ago