1-import csv
2-fcsv=open(‘mycsv.csv’, ‘r’)
3-table=csv.reader(fcsv)
4-for row in table:
5- print(row)
Contents
hide
Program Description
In the above program a library csv is imported in the first file which is used to manipulate csv files.
Moreover, a file object fcsv is created using open function, thereafter file object is passed into reader function which returns data of mycsv.cv file in table