Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 10, 2020 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/3140f593c3fde2aa7793dbb0a781fc91 to your computer and use it in GitHub Desktop.
Save parzibyte/3140f593c3fde2aa7793dbb0a781fc91 to your computer and use it in GitHub Desktop.
diccionario = {
'A': 15,
'B': 20,
}
for clave in diccionario:
valor = diccionario.get(clave)
print("En la clave {} tenemos a {}".format(clave, valor))
"""
Salida:
En la clave A tenemos a 15
En la clave B tenemos a 20
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment