Say I had a few numbers in a list:
listt = [2, 4, 6]
Is there any way to do something that would change the background color and color of each number depending on which number it is. For example:
for i in range(3):
if listt[i] == 2:
# make background color green and make number red
elif listt[i] == 4:
# make background color orange and make number green
elif listt[i] == 6
# make background color red and make number orange
print(nlistt[i])
Is there any way to do this and if not with both background and regular color can you do 1 of the 2. Also this should be in the console and not in a new window like pygame.