Description
Add colors to make the output more visually appealing, especially for Pokémon types.
Current Behavior
Output is plain text with no colors.
Expected Behavior
Add colors to different parts of the output, especially Pokémon types.
Example Output
Name: Pikachu
National Pokédex Number: 25
Type(s): Electric (in yellow/orange color)
Implementation Steps
- Research color libraries like
colorama or ANSI escape codes
- Add color to Pokémon types (Fire = red, Water = blue, etc.)
- Optionally add colors to other parts of the output
- Update requirements.txt if using a library
Skills Required
- Basic Python knowledge
- Understanding of terminal colors
- Library research skills
What You'll Learn
- Working with external libraries
- Terminal color codes
- Library documentation reading
Testing
Test with different Pokémon types to see various colors:
python pokedex.py pikachu (Electric - yellow)
python pokedex.py charizard (Fire/Flying - red/blue)
python pokedex.py blastoise (Water - blue)
Hints
colorama is a popular library for cross-platform colors
- You can also use ANSI escape codes directly
- Consider making colors optional (detect if terminal supports colors)
Description
Add colors to make the output more visually appealing, especially for Pokémon types.
Current Behavior
Output is plain text with no colors.
Expected Behavior
Add colors to different parts of the output, especially Pokémon types.
Example Output
Implementation Steps
coloramaor ANSI escape codesSkills Required
What You'll Learn
Testing
Test with different Pokémon types to see various colors:
python pokedex.py pikachu(Electric - yellow)python pokedex.py charizard(Fire/Flying - red/blue)python pokedex.py blastoise(Water - blue)Hints
coloramais a popular library for cross-platform colors