Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python función enumerate

>>> frutas = ["manzanas", "peras", "naranjas"]
>>> for i, fruta in enumerate(frutas):
...     print(i, fruta)
0 manzanas
1 peras
2 naranjas
 
PREVIOUS NEXT
Tagged: #python #enumerate
ADD COMMENT
Topic
Name
1+9 =