-
Good morning everyone. I'm pretty new to coding but I've been playing around with the Poke API to practice my skills, work with functions, and loops, and dictionaries etc. Currently I'm just working on kind of the basics, enter a pokemon name, the program pulls up the basic info (name, index, abilities, height, weight, base experience) then it lists the type strengths and weaknesses for each type the pokemon has. then I want it to list more details about each ability the pokemon has. This is where I am running into an issue. If i just input effect_entries = ability_info['effect_entries'] I get a TypeError saying "list indices must be integers or slices, not str" so I did effect_entries = ability_info['effect_entries'][0] but then ability "overgrow" prints in English but ability "protean" prints in Deutsch? I'm not really sure if this is a problem with my code or if it is a problem with the way the database is structured? If it is a problem with my code if there is anyone who could help me resolve this it would be greatly appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi your question is relevant to the code you are executing. We cannot support you for the code you wrote. There're different websites that you could use to get support for your question. Try Stack overflow and detail better your question. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi your question is relevant to the code you are executing. We cannot support you for the code you wrote. There're different websites that you could use to get support for your question.
Try Stack overflow and detail better your question.
Thanks!