I am working on a small text adventure in Python 3.2 when I learn it in order to practice and become more familiar with the language. In any case, I want to make sure that when certain actions are performed, the color of the print text changes. How to do it.
For example, the first text I want to do this for is:
if 'strength' in uniqueskill.lower(): time.sleep(3) print('As you are a Warrior, I shall supply you with the most basic tools every Warrior needs.') time.sleep(3) print('A sword and shield.') time.sleep(1) print('You have gained A SWORD AND SHIELD!')
Jack source share