-
-
Save parzibyte/37f102b0cec84f2cedcb387457abf391 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 pokemon_rapido(self, pokemones): | |
nombre = "" | |
puntaje = -1 # iniciar valores en algo muy bajo | |
for id_pokemon in pokemones: | |
pokemon = pokemones.get(id_pokemon) | |
if pokemon["puntos_velocidad"] >= puntaje: | |
puntaje = pokemon["puntos_velocidad"] | |
nombre = pokemon["nombre"] | |
return nombre, puntaje |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment