I am using windows 10 and Python 3.6.5 through Anaconda.
I am trying to create a CSV and then add a list to said CSV but I cannot get it to create the CSV in the first place. No error codes, just nothing. I have disabled all antivirus protection to make sure that wasnt the issue. I have tried on two different PCs. I am sure it is something stupid as I am newish to python, but I cant find the answer.
I have tried two ways.
open("new.txt","w").close
and
import csv
with open('names.csv', "w") as csv_file:
csv_writer = csv.writer(csv_file, delimiter=",")
print(csv_writer)
this gives me the memory position of csv_writer as expected but other than that does nothing.
Please help a newbie out! Thanks. I promise I have googled and tried everything I know.