I have a text file which looks like this. While printing the contents of file, I want to change the color of all occurences of keyword "IMPORTANT!!!" to red while printing the contents of file with python in the output console. How can I do this with python 2.7 ?
IMPORTANT!!! abcsdfdsfs
hello there
IMPORTANT!!! jldsfjdkjfd