DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
list square python
l1 = [1,2,3,4,5] l2 = [x**2 for x in l1] l2 >>> [1,4,9,16,25]
PREVIOUS
NEXT
Tagged:
#list
#square
#python
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit