list comprehension odd numbers python code example Example: list comprehension odd numbers python L=([i%2 for i in range(10)]) print(L)