-
-
Save parzibyte/ee64e855d624b4f9561ec72c229d9d0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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