Advertisement
Fhernd

indices-valores.py

Jun 23rd, 2018
1,400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. nombres = ['Raskolnikov', 'Michkin', 'Fomma']
  2.  
  3. for idx, val in enumerate(nombres):
  4.     print('Índice: {} - Valor: {}'.format(idx, val))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement