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