I'm learning python and have written a small script that pulls data from a webpage and displays it on the screen.
It assigns a variable to each item it pulls from the webpage. I have a variable that has two out comes.
ham_lic = Active
or
ham_lice = Expired
It then prints that value to the screen.
print "License: ("+ham_lic+")"+"\n"
I'm trying to figure out how to print the license status red when the value is 'expired' and green when the value is 'active'.
Even just reference material would be greatly appreciated.