0

I want the prompt strings to be one color, and the user input to show in another color.

Date=input ("Date: ")
Market=input ("Market: ")
Price=input ("Price: ")
darkspine
  • 651
  • 1
  • 6
  • 17
Mr R
  • 1
  • 1
  • 1

1 Answers1

0

Just like print colored text:

Date = input("\033[94mDate:\033[92m ")
Market = input("\033[94mMarket:\033[92m ")
Price = input("\033[94mPrice:\033[92m ")

Or you can use bcolors like this:

import bcolors
Date = input(bcolors.BLUE + "Date:" + bcolors.OK)
zhangnew
  • 11
  • 1
  • 1
  • 6