When I execute the following code :
file1 = open("sources.conf", "r");
datalist = list(file1.readlines());
datalist[3][32]= "11";
I get this error: 'str' object does not support item assignment. After reading a bit, I discovered that it is not possible to change the string in python. Is there any other work around for this?
file1.readlines()orlist(file1)is enough..datalist[3][32]?