Advertisement
teslariu

funciones

Oct 30th, 2021
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. nombres = ["Ana" ,"Tito", "Juana"]
  5.  
  6. for i,nombre in enumerate(nombres):
  7.     print(i+1, nombre)
  8.    
  9. notas = [7,8,9]
  10.  
  11. for nombre, nota in zip(nombres, notas):
  12.     print(nombre, nota)
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement