Re: having problems with a multi-conditional while statement

2009-01-07 Thread Hendrik van Rooyen
Philip Semanchuk ph...@nchuk.com 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

having problems with a multi-conditional while statement

2009-01-06 Thread bowman.jos...@gmail.com
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

Re: having problems with a multi-conditional while statement

2009-01-06 Thread Philip Semanchuk
On Jan 6, 2009, at 7:18 PM, bowman.jos...@gmail.com 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

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, bowman.jos...@gmail.com bowman.jos...@gmail.com 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

Re: having problems with a multi-conditional while statement

2009-01-06 Thread bowman.jos...@gmail.com
,  bowman.jos...@gmail.com bowman.jos...@gmail.com 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