May i know how can i display a numbered list of all the column header names which i have already import the header names from csv using Python’s open() and readline().
I got my header using:
f= open("data.csv", "r", encoding='utf8') header = f.readline() print(header)
The output was:
But i would like to display a numbered list of all the column header names, for eg. I would like my output to be:
0 Name 1 Index 2 Age 3 Year 4 Jobcar 5 Dept
Thank you very much in advance.