I am trying to iterate through my replace() function, to remove [1:n] in my .txt file (see image below), but it does not seem to work.
I have tried multiple t