Blog
Homework

INSTRUCTIONS
Write a Python script that lets a user build a team of up to 6 Pokémon and then analyzes the team. Your script must make real API calls to PokéAPI to fetch live data — no hardcoding stats.
Requirements
Part 1 — Data fetching (must have)
Prompt the user to enter up to 6 Pokémon names or IDs
Make a GET request to PokéAPI for each one
Handle errors gracefully — if a PokĂ©mon isn’t found, tell the user and let them try again (hint: check the status code)
Part 2 — Analysis (must have)
Print a summary table showing each PokĂ©mon’s name, types, and total base stats
Identify the team’s strongest PokĂ©mon (highest total base stats) and fastest PokĂ©mon (highest speed stat)
Check for type overlap — warn the user if two or more Pokémon share the same type
Part 3 — Go further (pick at least one)
Calculate the team’s average base stats across all six members
Make a second API call using the species endpoint to show each PokĂ©mon’s capture rate
Add a type weakness checker using the /type/{name} endpoint — tell the user which types their whole team is weak to
Save the team summary to a .txt file
Submit:
The .py file
A screenshot or copy-paste of a sample run with a real team