PokeAPI / pokebase

Python 3 wrapper for Pokéapi v2
BSD 3-Clause "New" or "Revised" License
287 stars 54 forks source link

List of moves doesn't show correctly #25

Open Larwive opened 3 years ago

Larwive commented 3 years ago

I want to get all the moves Bulbasaur can learn and the associated learning method but I only get those lines in the video.

I'm using Python 3.9.0 on MacOS Big Sur 11.1

https://user-images.githubusercontent.com/50395278/103458345-51f43200-4d07-11eb-8a08-4baa3c20bf9c.mov

C-Garza commented 3 years ago

You are calling pokemon 1 and then accessing the list of moves on it, like shown in this link. You can, for example, get a list of their names by looping through and accessing move like this:

for x in list:
    print(x.move)