DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+7 =
Submit