xxxxxxxxxx
bolded_string = "\033[1m" + a_string + "\033[0m"
xxxxxxxxxx
class color:
BOLD = '\033[1m'
END = '\033[0m'
print(color.BOLD + 'Hello World !' + color.END)
xxxxxxxxxx
pip install simple_colours
from simple_colors import *
print(green('hello', 'bold'))
bold text python
xxxxxxxxxx
def say(text: str):
print ("\033[1;37m" + text)
say("Hello, world!")