Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python listas por comprension

>>> numeros = [1, 2, 3, 4]
>>> cuadrados = [num ** 2 for num in numeros]
>>> print(cuadrados)
[1, 4, 9, 16]
 
PREVIOUS NEXT
Tagged: #python #listas #por #comprension
ADD COMMENT
Topic
Name
7+3 =