Search
 
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
Name
3+8 =