Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python color input

from colorama import init
from termcolor import colored
 
init()
 
def computer_prompt():
    return (colored('Computer: ', 'green', 'on_blue'))
def user_prompt():
    return (colored('User: ', 'yellow', 'on_blue'))
 
print(computer_prompt()+'Please enter a word.')
 
word = input(user_prompt()+('?: '))
 
print(word)
Comment

PREVIOUS NEXT
Code Example
Python :: find unique char in string python 
Python :: summary in python 
Python :: how to add rows to empty dataframe 
Python :: tkinter slider 
Python :: intersect in python list 
Python :: python dict append 
Python :: length of dataframe 
Python :: distance matrix in python 
Python :: drop column from dataframe 
Python :: exit python terminal 
Python :: how to capitalize the first letter in a list python 
Python :: find max length in string in pandas dataframe 
Python :: read file into list python 
Python :: python timer decorator 
Python :: iterate through an array python 
Python :: return count of substring in a string 
Python :: discordpy get role by id 
Python :: dataframe column in list 
Python :: pd merge 
Python :: flask-callable 
Python :: tqdm enumerate 
Python :: python function returns function 
Python :: get title beautifulsoup 
Python :: convert text to speech in python 
Python :: how to iterate through ordereddict in python 
Python :: np one hot encoding 
Python :: How to select rows in a DataFrame between two values, in Python Pandas? 
Python :: how to make a random variable in python 
Python :: discord.py how get user input 
Python :: find all color in image python 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =