Relative Content

Tag Archive for pythonvariables

Python variable not overwriting old variable

I want to replace new data to my text file with variables. However my old variables gets replaced instead of the new ones. When printing the variable inside the updateConfig() function it prints out the old variable instead of the new one which means the new variables did not overwrite the old variable in the code. I was hoping someone could help me with a solution