Python list comprehension can be compared wtih Ruby statement modifiers but it's even better. Here is an example: