0

Is there a way to change the color of a printed text in python example print("Hello world") and change its color to like blue when it gets printed

  • 2
    Does this answer your question? [How to print colored text to the terminal](https://stackoverflow.com/questions/287871/how-to-print-colored-text-to-the-terminal) – Danish Bansal Dec 28 '21 at 05:17
  • What have you [researched](https://meta.stackoverflow.com/q/261592/3929826) so far? – Klaus D. Dec 28 '21 at 05:18

1 Answers1

1
pip install termcolor
#https://pypi.org/project/termcolor/

from termcolor import colored 

print(colored("Jello World!", 'green'))
Robin Sage
  • 969
  • 1
  • 8
  • 24