single line comprehensions with if and for code example Example: list comprehension python one line doubled_odds = [n * 2 for n in numbers if n % 2 == 1]