Comprehension

List comprehension is clear and Pythonic.

nums = [1,2,3,4,5]
even = [n for n in nums if n % 2 == 0]