import csv
with open('SalesJan2009.csv') as csvfile:
readcsv = csv.reader(csvfile, delimiter =',')
print(readcsv)
When I run this code I get the following error:
Traceback (most recent call last):
File "D:/ANIKET/PRACTICE PROGRAMS/python projects/csv.py", line 1, in <module>
import csv
File "D:\ANIKET\PRACTICE PROGRAMS\python projects\csv.py", line 3, in <module>
readcsv = csv.reader(csvfile, delimiter =',')
AttributeError: module 'csv' has no attribute 'reader'
What should I change?