I am writing a print statement that prints a single word in the whole string as a different color. Does anyone know how I can do that? The method I am using prints only the highlighted word.
import random
def skyBlue(skk): print("\033[96m {}\033[00m" .format(skk))
lsubject = ["physics", "geology", "history", "algebra", "literature"]
subjectColor = skyBlue(random.choice(lsubject))
print("You study " + str(subjectColor) + ".")