teslariu

matriz

Nov 25th, 2021
621
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. Las matrices son listas de listas
  5. """
  6. ale_perez = [32, 252588566, "TEL:4645654", True]
  7. juana_garcia = [25, 455588566, "TEL:1115654", False]
  8.  
  9.        
  10. empleados = [ale_perez, juana_garcia]
  11.  
  12. # imprimo los datos de ale_perez
  13. print(empleados[0])
  14.  
  15. # imprimo la edad de juana_garcia
  16. print(empleados[1][0])
  17.  
  18. # imprimo si ale_perez esta casado o no
  19. print(empleados[0][3])
  20.  
RAW Paste Data