Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    Have you considered writing a function? Commented Oct 17, 2022 at 17:18
  • A with block dealio would do the job wouldn't it? Commented Oct 18, 2022 at 7:08
  • @whatsisname you mean between the two whiles? or inside the inner while? Commented Oct 19, 2022 at 1:50
  • @JimmyJames a function doesn't work unless I use globals, I have a function of umpteen parameters, or I use a closure. I want to be able to have simple local variables checked against. Think "i > 10 and isinstance(value , dict)" Commented Oct 19, 2022 at 1:55