Skip to content
Sign upLog in
← Back to Community
Underline
Profile icon
KSUDEE

How to underline text in python programming

Voters
Profile icon
KSUDEE
Comments
hotnewtop
Profile icon
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

Profile icon
KSUDEE

@VulcanWM
Thank you

Profile icon
VulcanWM

No problem!

@KSUDEE