Re: having problems with a multi-conditional while statement

2009-01-07 Thread Hendrik van Rooyen
"Philip Semanchuk" wrote: 8< nice explanation > Change the "and" to an "or" and you'll get the result you expected. Also google for "De Morgan", or "De Morgan's laws" Almost everybody stumbles over this or one of it's corollaries at least once in their careers

Re: having problems with a multi-conditional while statement

2009-01-06 Thread [email protected]
Thanks for the assistance. I actually realized I was making things more complicated than they needed to be and I really only needed one condition to be met. On Jan 6, 7:42 pm, Ned Deily wrote: > In article > <40a44d6b-c638-464d-b166-ef66496a0...@l16g2000yqo.googlegroups.com>, > > > >  "bowman.jos

Re: having problems with a multi-conditional while statement

2009-01-06 Thread Ned Deily
In article <40a44d6b-c638-464d-b166-ef66496a0...@l16g2000yqo.googlegroups.com>, "[email protected]" wrote: > Hi, > > I'm trying to write a multi-conditional while statement, and am having > problems. I've broken it down to this simple demo. > > #!/usr/bin/python2.5 > > condition1 = Fal

Re: having problems with a multi-conditional while statement

2009-01-06 Thread Philip Semanchuk
On Jan 6, 2009, at 7:18 PM, [email protected] wrote: Hi, I'm trying to write a multi-conditional while statement, and am having problems. I've broken it down to this simple demo. #!/usr/bin/python2.5 condition1 = False condition2 = False while not condition1 and not condition2: pri

having problems with a multi-conditional while statement

2009-01-06 Thread [email protected]
Hi, I'm trying to write a multi-conditional while statement, and am having problems. I've broken it down to this simple demo. #!/usr/bin/python2.5 condition1 = False condition2 = False while not condition1 and not condition2: print 'conditions met' if condition1: condition2 = Tr