How to bold the Alphabets in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
26th Aug 2023, 7:22 AM
Savita Devi
Savita Devi - avatar
5 Answers
+ 4
Savita Devi Yes you can create bold text in python. But it depends on your terminal. I found that it works here. https://www.onlinegdb.com/online_python_compiler To make text bold, we'll use the ANSI escape code for bold text, which is \033[1m. Example: bold = "\033[1mBold Text\033[0m" print(bold) You may find more info here: https://www.kodeclik.com/how-to-bold-text-in-python/
1st Sep 2023, 3:23 AM
Chris Coder
Chris Coder - avatar
+ 3
Check this out. It can be done, but this trick works on Sololearn only. It uses the fact that Sololearn switches its output to interpret html when an image file gets created during the run. https://code.sololearn.com/cW8YzPnew65p/?ref=app
26th Aug 2023, 11:03 AM
Brian
Brian - avatar
+ 2
I don't think you can with the Sololearn compiler. If you're doing graphics, and I can see your code isn't but maybe in the future you'd like to, you can choose fonts and styles, just like HTML. Let's see if there any information here: https://www.sololearn.com/discuss/1508755/?ref=app https://www.sololearn.com/discuss/1685447/?ref=app https://code.sololearn.com/cew2c49UQl6i/?ref=app https://code.sololearn.com/cJVjBDT36OLY/?ref=app https://code.sololearn.com/cRjJ3aAT1oV0/?ref=app
26th Aug 2023, 8:29 AM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Neato Brian ! Thanks for that
26th Aug 2023, 3:37 PM
Ausgrindtube
Ausgrindtube - avatar
0
Cool bit of info Mirielle !
27th Aug 2023, 8:20 AM
Ausgrindtube
Ausgrindtube - avatar