Skip to content

Tag: loops

How to repeat the steps

In my program I have total of 3 steps. To find the mean Split the given list using the mean value If the threshold value > epsilon then update mean value and repeat the step 2 again with updated mean value, else finished. I have achieved above two steps anyhow. Third step I have achieved only half and stru…

Python dynamic for loop range size

I’m trying to add Link argument to ini file by using python. Example of ini file: I need to do like this: My for loop: My code works, but it does not add Link for last tags. I’ve found why. If I add in range(len(m)+100): Then code adds all Links. Looks like len(m) is old value (static?), because I…