0
How to bold the Alphabets in python
5 ответов
+ 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/
+ 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
+ 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
+ 2
Neato Brian ! Thanks for that
0
Cool bit of info Mirielle !