DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
list comprehension with square numbers python
def square(a): squares = [] for i in a: squares.append(i**2) return squares
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#list
#comprehension
#square
#numbers
#python
ADD COMMENT
Topic
COMMENT
Name
9+3 =
Submit