How can I print Hello World
in different colors
Print("Hello World")
I want to print it two times one in red another in blue
How can I print Hello World
in different colors
Print("Hello World")
I want to print it two times one in red another in blue
You can use the module termcolor
(install it running pip install termcolor
). Try this:
from termcolor import colored
print(colored("Hello","blue"))
print(colored("Hello","red"))