python dictionary to change text colors?

chlyde

New Member
Joined
Dec 21, 2021
Messages
8
Reaction score
1
Credits
111
Dictionary Colors :
Sorry to bother you, I'm new to python programming. .I spent all day trying to do this:
colors={0:"Fore.BLACK",1:"Fore.RED"}
print( colors[1] ,"Hello there!") or print(f ' { colors[1] } ',"Hello there!")
I've tried it every which way I can think of. Could you tell me how to do it. : ? )
 


Members online


Top