print("this text is blue")
How could I make the text blue? I have:
print('\033[94m' + "this text is blue")
and
print("\033[94mthistextisblue")
However, nothing has worked so far.
print("this text is blue")
How could I make the text blue? I have:
print('\033[94m' + "this text is blue")
and
print("\033[94mthistextisblue")
However, nothing has worked so far.
The best way to do that is to use the colorama
module!
https://pypi.org/project/colorama/
https://github.com/tartley/colorama
It's compatible with all OSes. It's easy to use and much much safer than doing all of those special/exit etc characters by hand