Python

Shorten your Python for loops with list comprehension

For loops can be lengthy, and I like to keep my code concise. In Python, you can use lists to shorten up for loop code into one line lists.