Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 22, 2021 22:16
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/37f102b0cec84f2cedcb387457abf391 to your computer and use it in GitHub Desktop.
Save parzibyte/37f102b0cec84f2cedcb387457abf391 to your computer and use it in GitHub Desktop.
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