def print_categories(categories, colors):
    """Print a tick and the category's name for each category above
       the graph."""
    for i in range(len(categories)):
        if colors:
            sys.stdout.write(f'\033[{colors[i]}m') # Start to write colorized.

        sys.stdout.write(TICK + ' ' + categories[i] + '  ')
        if colors:
            sys.stdout.write('\033[0m') # Back to original.

    print('\n\n')
def print_categories ( categories , colors ) : for i in range ( len ( categories ) ) : if colors : sys . stdout . write ( f'\033[{colors[i]}m' ) sys . stdout . write ( TICK + ' ' + categories [ i ] + '  ' ) if colors : sys . stdout . write ( '\033[0m' ) print ( '\n\n' )
Print a tick and the category's name for each category above
       the graph.