Re: [Tutor] or synxtax in if statement

2007-08-31 Thread Brian Wisti
On 8/31/07, David Bear <[EMAIL PROTECTED]> wrote: > > I think I want to be lazy and express this > > if a == b | a = c > (if a equal b or a equals c) > using > > if a == b | c > > it seems to work.. but I'm not sure if it is correct -- and I haven't seen > any documentation on using this type of sy

Re: [Tutor] or synxtax in if statement

2007-08-31 Thread Eric Brunson
David Bear wrote: > I think I want to be lazy and express this > > if a == b | a = c > (if a equal b or a equals c) > using > > if a == b | c > > it seems to work.. but I'm not sure if it is correct -- and I haven't seen > any documentation on using this type of syntax. > > > The pipe is the "bi

Re: [Tutor] or synxtax in if statement

2007-08-31 Thread Smith, Jeff
t; c=0 >>> print a == b or c 0 Which is the same as false. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Bear Sent: Friday, August 31, 2007 3:40 PM To: tutor@python.org Subject: [Tutor] or synxtax in if statement I think I want

[Tutor] or synxtax in if statement

2007-08-31 Thread David Bear
I think I want to be lazy and express this if a == b | a = c (if a equal b or a equals c) using if a == b | c it seems to work.. but I'm not sure if it is correct -- and I haven't seen any documentation on using this type of syntax. -- -- David Bear College of Public Programs at Arizona State