Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- dicc = {"black":"negro", "white":"blanco", "red":"rojo"}
- personas = {
- 35222222:"Juan Perez",
- 35645645:"Ana Ertyu",
- 45855552:"Juan Ponce"
- }
- print(dicc)
- claves = list(dicc.keys())
- print(claves)
- valores = list(dicc.values())
- print(valores)
- print()
- for clave, valor in dicc.items():
- print(clave, valor)
- print(f"DNI Nombre")
- for dni,nombre in personas.items():
- print(f"{dni} {nombre}")
Add Comment
Please, Sign In to add comment