Python Forum
Scoping Question: If else in for loop not evaluating i as expected
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scoping Question: If else in for loop not evaluating i as expected
#4
Thanks to the forum for your replies. The primary issue with my code and the resulting output was the executemany command:
cur2.executemany(query, frecords)
When I replaced that with just cur2.execute the code quit repeatedly iterating over the same arrays.
Reply


Messages In This Thread
RE: Scoping Question: If else in for loop not evaluating i as expected - by datasundae - May-25-2018, 06:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Evaluating arithmetic expression with recursion. muddybucket 3 2,859 Dec-17-2021, 08:31 AM
Last Post: deanhystad
  A question about 'Event loop is closed' fc5igm 2 2,225 Oct-05-2021, 02:00 AM
Last Post: fc5igm
Exclamation question about input, while loop, then print jamie_01 5 2,685 Sep-30-2021, 12:46 PM
Last Post: Underscore
  for loop question KEYS 1 1,736 Oct-27-2020, 11:42 PM
Last Post: jefsummers
  Netmiko Loop question sc00ter 2 3,332 Oct-24-2020, 10:54 PM
Last Post: sc00ter
  Please help my while loop does not work as expected KingKhan248 6 2,634 Sep-28-2020, 09:12 PM
Last Post: deanhystad
  while loop question KEYS 2 2,023 Sep-26-2020, 11:02 PM
Last Post: KEYS
  New to programming, loop question tomyan 1 1,646 Sep-25-2020, 04:32 PM
Last Post: Larz60+
  while loop question spalisetty06 2 1,860 Aug-13-2020, 04:18 PM
Last Post: buran
  question about for loop Than999 5 2,498 Jun-09-2020, 02:16 PM
Last Post: Emekadavid

Forum Jump:

User Panel Messages

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