0
Q:

print bold python

print('\033[1m' + 'Text' + '\033[0m')
1
from simple_colors import *
print(green('hello', 'bold'))
0
from __future__ import unicode_literals, print_function
from prompt_toolkit import print_formatted_text, HTML

print_formatted_text(HTML('<b>This is bold</b>'))
print_formatted_text(HTML('<i>This is italic</i>'))
print_formatted_text(HTML('<u>This is underlined</u>'))
0

New to Communities?

Join the community