DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Python List Comprehension: Elegant way to create Lists
pow2 = [2 ** x for x in range(10)] print(pow2)
PREVIOUS
NEXT
Tagged:
#Python
#List
#Elegant
#create
#Lists
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit