Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python creare una list comprehension

quadrati = []

for n in range(10):
    quadrati.append(n**2)

print(quadrati)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
Source by www.programmareinpython.it #
 
PREVIOUS NEXT
Tagged: #python #creare #una #list #comprehension
ADD COMMENT
Topic
Name
3+9 =