DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
comprehensions
print([x * 2 for x in range(10) if x % 2 == 0]) # [0, 4, 8, 12, 16]
Source by monolith.propulsion-home.ch #
PREVIOUS
NEXT
Tagged:
#comprehensions
ADD COMMENT
Topic
COMMENT
Name
3+8 =
Submit