>>> def esc(code): ... return f'\033[{code}m' ... >>> print(esc('31;1;4') + 'really' + esc(0) + ' important')