Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

how to add colour

Leroy01010
Leroy01010

how can you add colour to a text in python

2 years ago
Answered by Bookie0View Answer
You are viewing a single comment. View All
1
Coder100
Coder100

Hi! You can do it with ANSI escape codes:

print("\033[1mbold text\033[0m normal text") print("\033[31mred text\033[93m yellow text\033[0m normal text")

Find more colors here

2 years ago
1
Leroy01010
Leroy01010

thx i will try them

@Coder100

2 years ago