Skip to content

Pokémon

Sankarsan Kampa edited this page Feb 15, 2018 · 2 revisions

Available Methods

Methods

.get_pokemon_by_name(name)

Returns a list of Pokémon dictionary containing all the forms of the Pokémon specified the Pokémon name.

Parameter Type Optional Default Description
name String none The name of the Pokémon

Returns: Pokemon

Example:

pokemon = pokedex.get_pokemon_by_name('pikachu')
print(pokemon)

.get_pokemon_by_number(number)

Returns a list of Pokémon dictionary containing all the forms of the Pokémon specified the Pokédex number.

Parameter Type Optional Default Description
number Number none The Pokédex number of the Pokémon

Returns: Pokemon

Example:

pokemon = pokedex.get_pokemon_by_number(658)
print(pokemon)

.get_pokemon_counts()

Returns a Pokémon Counts dictionary containing the number of Pokémon in each generation and the total number of Pokémon in the Pokémon World.

Returns: PokemonCounts

Example:

pokemon_counts = pokedex.get_pokemon_counts()
print(pokemon_counts)
Clone this wiki locally