Answer the question
In order to leave comments, you need to log in
How to use the colorama library to make input text with a colored background without extra characters?
import colorama
from colorama import init
from colorama import Fore, Back, Style
init()
q = input('Введите пароль: ' + Fore.GREEN + Back.RED )
Answer the question
In order to leave comments, you need to log in
Krch here, keep the code with comments
import colorama # Импортируем модуль.
from colorama import init
from colorama import Fore, Back, Style
init()
print(Fore.GREEN + Back.RED) # Вот тута указываем цвета.
q = input('Введите пароль: ') # Далее, просто запрашиваем пароль.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question