Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nested for loops
#9
(Oct-05-2019, 12:24 AM)ichabod801 Wrote: One thing about Auggie's solution is that it will only work on hashable items. It should work fine with strings, but I'm not sure if it would work well with regex matches. Regex matches are hashable, but they also need to be equal.

d79danny, I have no idea about hashable items or regex matches, Huh so if you want to be sure, it's better to follow ichabod801's advice.

All the best,
newbieAuggie2019

"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
Reply


Messages In This Thread
Nested for loops - by d79danny - Oct-04-2019, 09:09 PM
RE: Nested for loops - by ichabod801 - Oct-04-2019, 09:35 PM
RE: Nested for loops - by d79danny - Oct-04-2019, 10:13 PM
RE: Nested for loops - by newbieAuggie2019 - Oct-04-2019, 10:35 PM
RE: Nested for loops - by ichabod801 - Oct-04-2019, 10:24 PM
RE: Nested for loops - by d79danny - Oct-04-2019, 10:52 PM
RE: Nested for loops - by newbieAuggie2019 - Oct-04-2019, 11:00 PM
RE: Nested for loops - by ichabod801 - Oct-05-2019, 12:24 AM
RE: Nested for loops - by newbieAuggie2019 - Oct-05-2019, 02:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  reduce nested for-loops Phaze90 11 1,901 Mar-16-2023, 06:28 PM
Last Post: ndc85430
  Nested for loops: Iterating over columns of a DataFrame to plot on subplots dm222 0 1,714 Aug-19-2022, 11:07 AM
Last Post: dm222
  Nested for loops - help with iterating a variable outside of the main loop dm222 4 1,588 Aug-17-2022, 10:17 PM
Last Post: deanhystad
  breaking out of nested loops Skaperen 3 1,223 Jul-18-2022, 12:59 AM
Last Post: Skaperen
  Break out of nested loops muzikman 11 3,342 Sep-18-2021, 12:59 PM
Last Post: muzikman
  How to break out of nested loops pace 11 5,369 Mar-03-2021, 06:25 PM
Last Post: pace
  Nested for Loops sammay 1 8,627 Jan-09-2021, 06:48 PM
Last Post: deanhystad
  How to make this function general to create binary numbers? (many nested for loops) dospina 4 4,414 Jun-24-2020, 04:05 AM
Last Post: deanhystad
  Python beginner - nested while loops mikebarden 1 1,870 Jun-01-2020, 01:04 PM
Last Post: DPaul
  best way out of nested loops? Skaperen 7 3,798 May-30-2020, 05:20 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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