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
1

how do i make the words colors?

IAmNew1234
IAmNew1234

so i made a PasswordCreator earlier today but i want to add some color since it looks a little dull

2 years ago

Voters

Comments

TopNew
2
RYANTADIPARTHI
RYANTADIPARTHI

Solution

use the termcolor module.

from termcolor import colored print(colored("This is red"), "red")

now, that gives red. You can also use blue, green, grey, black, white, pink, orange, and others.
That should work

2 years ago
1
IAmNew1234
IAmNew1234

oh ok thx :D

@RYANTADIPARTHI

2 years ago
1
yzhacker
yzhacker

you can use colorama

2 years ago
1
yzhacker
yzhacker
import colorama print(Fore.RED + 'test?')

or use \033[33m
you can change 33 to any number

2 years ago
1
IAmNew1234
IAmNew1234

ummmmmmm where do i put it?


@qerewrad

2 years ago
1
yzhacker
yzhacker
print('\033[33mtest')
2 years ago
1
IAmNew1234
IAmNew1234

thank you :D it worked i wish i could check yours as correct but someone else has it. sorry

@qerewrad

2 years ago
Load more