colorama
from colorama import Fore, Back, Style
print(Fore.RED + 'some red text')
print(Back.GREEN + 'and with a green background')
print(Style.DIM + 'and in dim text')
print(Style.RESET_ALL)
print('back to normal now')
colorama
from colorama import Fore, Back, Style
print(Fore.RED + 'some red text')
print(Back.GREEN + 'and with a green background')
print(Style.DIM + 'and in dim text')
print(Style.RESET_ALL)
print('back to normal now')
how to install colorama
Installing with pip is almost always the way to go.
It will handle downloading the package for you, as well as any dependencies.
If you do not have pip,
see http://www.pip-installer.org/en/latest/installing.html.
Then
pip install colorama
or
sudo pip install colorama
Ba-boom! Done.
Source
https://stackoverflow.com/questions/9846683/how-to-install-colorama-python
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us