This code doesn’t want to change the value of a part of a list in a for loop…
I’ve checked, all of the names exist and the variable I’m trying to change the part of the list has a valid value.
Is there something I’m not noticing?
for i in range(len(string)):
if string[i]=="varInt":
string[i]==varInt
elif string[i]=="varFloat":
string[i]==varFloat
elif string[i]=="varStr":
string[i]==varStr
P.S. I checked with Python tutor, but I couldn’t find anything in the code visualization that could help me, the program just goes over the line without changing anything…