Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list comprehension odd numbers python

L=([i%2 for i in range(10)])
print(L)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #list #comprehension #odd #numbers #python
ADD COMMENT
Topic
Name
8+8 =