pip install termcolor
import os
import random
import time
from termcolor import colored
cdefs = '''grey
red
green
yellow
blue
magenta
cyan
white'''.split('\n')
ins = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
ins = list(ins)
while True:
rc = random.choice(ins)
cdef = random.choice(cdefs)
print(colored(rc, cdef), end='')
#time.sleep(0.0001)