Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 22, 2021 22:15
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/ee64e855d624b4f9561ec72c229d9d0f to your computer and use it in GitHub Desktop.
Save parzibyte/ee64e855d624b4f9561ec72c229d9d0f to your computer and use it in GitHub Desktop.
def buscar_dato(self, pokemones, id, valor):
for id_pokemon in pokemones:
if id_pokemon == id:
pokemon = pokemones.get(id_pokemon)
return pokemon[valor]
return "Pokémon no encontrado"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment