Advertisement
teslariu

for

Jul 15th, 2021
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. dicc = {"white":"blanco", "red":"rojo","green":"verde"}
  5.  
  6. print(dicc)
  7.  
  8. for clave, valor in dicc.items():
  9.     print(clave, valor)
  10.    
  11.    
  12. notas = [ ["ale",10], ["ana",5], ["tito", 8] ]
  13.  
  14. print(notas)
  15.  
  16.  
  17. print("------------------------")
  18. for elemento in notas:
  19.     print(elemento)
  20.    
  21. print("------------------------")
  22.  
  23. for i in notas:
  24.     print()
  25.     for j in i:
  26.         print(j, end=" ")
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement