ERROR:
Traceback (most recent call last):
File "C:/Users/Mathew/Desktop/Python/PROJECT PRGRMS/defo.py", line 1, in <module>
import csv
File "C:/Users/Mathew/Desktop/Python/PROJECT PRGRMS\csv.py", line 7, in <module>
with open(csv_path,"rb") as f_obj:
NameError: name 'csv_path' is not defined
CODE:
import csv
with open('emp.csv','w') as emp_file:
w=csv.writer(file,delimiter=',')
w.writerow(['Jane Thomas', 'Accounting', 'November'])
print('RECORD WRITTEN SUCCESSFULLY')
enter code here