>> *user* input `~` input
colors:
yellow white blue
I want the first word of user input to be yellow, other text to be white and special charcter ~ to be blue.
this is an example code for a terminal in python.
while True:
cmd = input(">> ")
# Logic code for a terminal
Wanted output:
>> *user* input `~` input
colors:
yellow white blue
I want the first word of user input to be yellow, other text to be white and special charcter ~ to be blue.
Please guide me.
New contributor
Advait Malli is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.