I have this script, where I intend to update a value in a CSV
I understand that I will write it back to the file to actually effect the changes, but I was expecting to be able to change the value in the row list like below.
However, before and after the change, the row remains the same,
Why would that be?
with open(tasks) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
for row in csv_reader:
row[1] == 'ddd'
print(row)