#pip install termcolor from termcolor import cprint cprint('Hello, World! In yellow highlighted in red!', 'yellow', 'on_red') cprint('Hello, World! Underlined in red!', 'red', attrs=["underline"])