Search
 
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
Name
9+3 =