Personally the way you've done it is the most Pythonic IMO. List comprehensions are great but would be less readable in this case.
Personally the way you've done it is the most Pythonic IMO. List comprehensions are great but would be less readable in this case.