Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
conditional nested loops
#1
i have 6 nested loops. i know that's crazy. even more crazy is that i don't need the first 3 of them if a certain condition is met. it would be nice if i could put those 3 after an if that tests the condition. but the syntax does not support that. it is ambiguous how many statements forming the loops the condition applies to. i don't even see how to do this in C. i could do this in assembly language (it's trivial to jump over code that runs a loop) but i want this code to be portable. any ideas?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recommendation - Resource - While loops, if/elif/else nested, functions musicjoeyoung 1 2,900 May-18-2020, 10:23 AM
Last Post: pyzyx3qwerty

Forum Jump:

User Panel Messages

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