Skip to content

[Good First Issue] Add Color to Output #7

@SthembisoMfusi

Description

@SthembisoMfusi

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

  1. Research color libraries like colorama or ANSI escape codes
  2. Add color to Pokémon types (Fire = red, Water = blue, etc.)
  3. Optionally add colors to other parts of the output
  4. 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)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions