I have following lines of code in my program and it executes fine, no issues but when i am trying to change the code slightly to print the output text in color and it doesnot work. I am sure it is a syntax issue, please if anybody can help, that would be great
from termcolor import colored, cprint
print("Name of the table:",table)
print("printing all the column names of this table:\n", df1_columns.columns)
print("count number of columns in this table: ",len(df1_columns.columns))
I changed the above to the following and throws an error
print(colored("print name of the table:"),table,'blue')
print(colored("print all the column names of this table:\n",df1_columns.columns,'blue')
print(colored("print number of columns in this table: ",len(df1_columns.columns,'blue'))