Created
June 23, 2018 14:52
-
-
Save Fhernd/0f5b43f2c302f9dca9f50f6139043047 to your computer and use it in GitHub Desktop.
Uso de la función enumerate() para obtener los índices y los valores de una secuencia. OrtizOL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nombres = ['Raskolnikov', 'Michkin', 'Fomma'] | |
for idx, val in enumerate(nombres): | |
print('Índice: {} - Valor: {}'.format(idx, val)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment