Feb-02-2020, 07:04 PM
print('\033[31m' + 'Hello' + '\033[0m') # this prints 'hello' in red textSo when I run this in Pycharm it works and prints out 'hello' in red text like I want it to.
But when I run the python file on my computer (so I just run the file, outside Pycharm), this is the output:
[31mHello[0m
So it doesn't print the red text. Does anybody know why this is, and how to solve it?