loop through a list using a list comp python code example Example: list comprehension python one line doubled_odds = [n * 2 for n in numbers if n % 2 == 1]