Feb-24-2021, 05:44 PM
Hello everyone.
In this code:
In this code:
spots = {1: '1', 2: '2', 3: '3'} spots[1] = '\033[93mONE\033[0m' print(spots[1]) print(spots)why the color only applies to the first print line and the dictionary item does not read the color code?
Output:ONE #this is colored(yellow)
{1: '\x1b[93mONE\x1b[0m', 2: '2', 3: '3'}
I'm using VSCode on windows 10