What I want to do: I have a few lists in a text file now and want to change just 1 element of 1 of the lists using python. What I have done so far:
Current txt file:
food,bought
oranges,yes
strawberry,no
apples,no
I want it to appear like this after using the code to replace one of the "no" to "yes":
food,bought
oranges,yes
strawberry,no
apples,yes
Is there any way to specifically change one index of the list?