print('33[1m' + 'Text' + '33[0m')
bolded_string = "33[1m" + a_string + "33[0m"
# print underline text in python
print("33[4m"+ "YourText" + "33[0m")
# print underline and bold text in python
print("33[4m"+ "33[1m"+ "YourText" + "33[0m" + "33[0m")
# Note: "33[4m" for undeline and "33[1m" for bold, both end with "33[0m"
class color:
BOLD = '33[1m'
END = '33[0m'
print(color.BOLD + 'Hello World !' + color.END)
pip install simple_colours
from simple_colors import *
print(green('hello', 'bold'))