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