DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
generator comprehension python
# generates 400.. 100.. 0.. 100.. 400 >>> gen_1 = (i**2 for i in [-20, -10, 0, 10, 20])
Source by www.pythonlikeyoumeanit.com #
PREVIOUS
NEXT
Tagged:
#generator
#comprehension
#python
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit