def set ( cls , color ) : sys . stdout . write ( cls . colors . get ( color , cls . colors [ 'RESET' ] ) )
how can i change the color of type in python
Sets the terminal to the passed color . : param color : one of the availabe colors .
def set(cls, color):
        """
        Sets the terminal to the passed color.
        :param color: one of the availabe colors.
        """
        sys.stdout.write(cls.colors.get(color, cls.colors['RESET']))