Advertisement
teslariu

funciones

Oct 30th, 2021
114
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement