Ask coding questions

← Back to all posts
Underline
KSUDEE

How to underline text in python programming

Voters
KSUDEE
Comments
hotnewtop
VulcanWM

Use this code:

class Format:
end = '\033[0m'
underline = '\033[4m'

print(Format.underline + 'Your text here' + Format.end)

It’s output is here: https://replit.com/@VulcanWM/DraftySecondaryDegrees#main.py