Python Forum
saving each iteration of a loop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
saving each iteration of a loop
#2
your file save is outside of loop, in fact everything after line 25 is outside of loop.

FYI: move all imports to top of file, it looks better, and this is where programmers expect to find them
Reply


Messages In This Thread
saving each iteration of a loop - by sgcgrif3 - Jul-26-2021, 03:55 PM
RE: saving each iteration of a loop - by Larz60+ - Jul-26-2021, 04:39 PM
RE: saving each iteration of a loop - by sgcgrif3 - Jul-27-2021, 11:06 AM
RE: saving each iteration of a loop - by DeaD_EyE - Jul-27-2021, 01:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Inconsistent loop iteration behavior JonWayn 2 1,007 Dec-10-2022, 06:49 AM
Last Post: JonWayn
  Simple Variable Saving in Loop DevDev 3 3,041 Mar-09-2021, 07:17 PM
Last Post: Fre3k
  String slicing and loop iteration divyansh 9 4,773 Jun-07-2020, 10:29 PM
Last Post: divyansh
  Changing a variable's name on each iteration of a loop rix 6 84,846 Jan-03-2020, 07:06 AM
Last Post: perfringo
  Parallel iteration with for loop Josh_Python890 1 2,183 Jul-19-2019, 11:50 PM
Last Post: metulburr
  Multiprocessing my Loop/Iteration (Try...Except) Jompie96 7 4,611 Jun-19-2019, 12:59 PM
Last Post: noisefloor
  First for loop stops after first iteration Divanova94 10 8,935 May-01-2019, 04:27 PM
Last Post: buran
  issue with updating list every iteration of a loop ftrillaudp 2 3,077 Oct-29-2018, 03:23 AM
Last Post: ftrillaudp
  exception during iteration loop Skaperen 6 3,901 Oct-24-2018, 12:35 AM
Last Post: Skaperen
  For Loop, execute one time for every loop iteration dragan979 2 4,447 Feb-20-2018, 12:02 PM
Last Post: dragan979

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020