Python Forum
openpyxl nested for loop help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
openpyxl nested for loop help
#4
LocalFolder got it right.

Also, do not use "list" as a variable name. That name is already in use for the list type and assigning a value to it overwrites that connection in your program. If you were to use list() later in the program, it would raise an error. At the very least, you can add an underscore (list_) to distinguish it.
Reply


Messages In This Thread
openpyxl nested for loop help - by rmrten - Oct-16-2019, 10:49 AM
RE: openpyxl nested for loop help - by LocalFolder - Oct-16-2019, 12:35 PM
RE: openpyxl nested for loop help - by baquerik - Oct-16-2019, 03:09 PM
RE: openpyxl nested for loop help - by stullis - Oct-16-2019, 03:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Big O runtime nested for loop and append yarinsh 4 1,464 Dec-31-2022, 11:50 PM
Last Post: stevendaprano
  Nested for loops - help with iterating a variable outside of the main loop dm222 4 1,710 Aug-17-2022, 10:17 PM
Last Post: deanhystad
  How do I add another loop to my nested loop greenpine 11 4,702 Jan-12-2021, 04:41 PM
Last Post: greenpine
  Error on nested loop : Invalid syntax dvazquezgu 3 3,321 Nov-25-2020, 10:04 AM
Last Post: palladium
  Nested loop indexing Morte 4 4,070 Aug-04-2020, 07:24 AM
Last Post: Morte
  Nested for loop not looping puttingwordstogether 0 1,763 Jun-16-2020, 11:15 PM
Last Post: puttingwordstogether
  Help: for loop with dictionary and nested lists mart79 1 1,913 Apr-12-2020, 02:52 PM
Last Post: TomToad
  Nested Loop for user input Ads 2 3,602 Dec-30-2019, 11:44 AM
Last Post: Ads
  nested for loop dilemma YoungGrassHopper 9 4,291 Sep-13-2019, 03:56 AM
Last Post: jsira2003
  nested for loop dilemma 2 YoungGrassHopper 12 5,036 Sep-12-2019, 02:06 PM
Last Post: YoungGrassHopper

Forum Jump:

User Panel Messages

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