color = {'white': '\x1b[1;37m', 'yellow': '\x1b[1;33m', 'off': '\x1b[0;0m'}
print(color['white'] + 'string' + color['off'])
print(color['yellow'] + 'string' + color['off'])
color['yellow'] = '\x1b[1,33m'
Python: octal escape character \033 from a dictionary value translates in a print statement to a UTF-8 character instead