So I have A code that's running through CMD like so : Python script.py textfile.csv
Inside the script i have something like this :
After its reading the .csv file I'm trying to delete the file from the location , Is that possible to write a code to delete a file that's attached to the Script ? or do i need to link it?
The code :
rows = csv.reader(f,delimiter=",",lineterminator="\n")
apple = {}
user['apple'] = row[0]
user['name'] = row[1]
users.append(apple)