Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

List Comprehensions

numbers = [1, 2, 3, 4, 5, 6]
squares = [i*i for i in numbers]

print(squares)
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #List #Comprehensions
ADD COMMENT
Topic
Name
8+8 =