print bold string python using format code example Example: print bold python print('\033[1m' + 'Text' + '\033[0m')