0

I am trying to run a simple CSV program in python(i am just a beginner).On running the program is shows "AttributeError: partially initialized module 'csv' has no attribute 'reader' (most likely due to a circular import)" the code is as follows

import csv
f=open("csv.csv",'r')
a=csv.reader(f)
print(a)

and the csv file that I have made is as follows:

""name,class,section
rakshith,12,science
aditya,12,science
haron,12,science""

Plz help!

mechanical_meat
  • 163,903
  • 24
  • 228
  • 223

0 Answers0