Re: True of False

2007-09-27 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I tried writing a true and false If statement and didn't get > anything? I read some previous posts, but I must be missing > something. I just tried something easy: > > a = ["a", "b", "c", "d", "e", "f"] > > if "c" in a == True: > Print "Yes" > > When I run t

Re: True of False

2007-09-27 Thread Marc Christiansen
Casey <[EMAIL PROTECTED]> wrote: > I would recommend the OP try this: > > run the (I)python shell and try the following: > a = [x for x in "abcdefg"] a > ['a','b','c','d','e','f','g'] "c" in a > True "c" in a == True > False ("c" in a) == True > True > > The reason your

Re: True of False

2007-09-27 Thread Marc 'BlackJack' Rintsch
On Thu, 27 Sep 2007 17:06:30 +, Duncan Booth wrote: > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > >> In [268]: 'c' in a == True >> Out[268]: False >> >> In [269]: ('c' in a) == True >> Out[269]: True >> >> In [270]: 'c' in (a == True) >> ---

Re: True of False

2007-09-27 Thread Erik Jones
On Sep 27, 2007, at 12:29 PM, Erik Jones wrote: > > On Sep 27, 2007, at 11:47 AM, Marc 'BlackJack' Rintsch wrote: > >> On Thu, 27 Sep 2007 09:33:34 -0700, koutoo wrote: >> >>> I tried writing a true and false If statement and didn't get >>> anything? I read some previous posts, but I must be mis

Re: True of False

2007-09-27 Thread Gary Herron
Richard Thomas wrote: > On 27/09/2007, Casey <[EMAIL PROTECTED]> wrote: > >> On Sep 27, 12:48 pm, "Simon Brunning" <[EMAIL PROTECTED]> >> wrote: >> >>> On 9/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> >>> I tried writing a true and false If statement and didn't get >

Re: True of False

2007-09-27 Thread Erik Jones
On Sep 27, 2007, at 11:47 AM, Marc 'BlackJack' Rintsch wrote: > On Thu, 27 Sep 2007 09:33:34 -0700, koutoo wrote: > >> I tried writing a true and false If statement and didn't get >> anything? I read some previous posts, but I must be missing >> something. I just tried something easy: >> >> a =

Re: True of False

2007-09-27 Thread Casey
On Sep 27, 1:12 pm, "Richard Thomas" <[EMAIL PROTECTED]> wrote: > On 27/09/2007, Casey <[EMAIL PROTECTED]> wrote: > > > > > On Sep 27, 12:48 pm, "Simon Brunning" <[EMAIL PROTECTED]> > > wrote: > > > On 9/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > I tried writing a true and false

Re: True of False

2007-09-27 Thread Carsten Haese
On Thu, 2007-09-27 at 16:47 +, Marc 'BlackJack' Rintsch wrote: > On Thu, 27 Sep 2007 09:33:34 -0700, koutoo wrote: > > > I tried writing a true and false If statement and didn't get > > anything? I read some previous posts, but I must be missing > > something. I just tried something easy: >

Re: True of False

2007-09-27 Thread Richard Thomas
On 27/09/2007, Casey <[EMAIL PROTECTED]> wrote: > On Sep 27, 12:48 pm, "Simon Brunning" <[EMAIL PROTECTED]> > wrote: > > On 9/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > I tried writing a true and false If statement and didn't get > > > anything? I read some previous posts, but I

Re: True of False

2007-09-27 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I tried writing a true and false If statement and didn't get > anything? I read some previous posts, but I must be missing > something. I just tried something easy: > > a = ["a", "b", "c", "d", "e", "f"] > > if "c" in a == True: > Print "Yes" > > When I run this

Re: True of False

2007-09-27 Thread Duncan Booth
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In [268]: 'c' in a == True > Out[268]: False > > In [269]: ('c' in a) == True > Out[269]: True > > In [270]: 'c' in (a == True) > --- > > Traceback (most re

Re: True of False

2007-09-27 Thread Casey
On Sep 27, 12:48 pm, "Simon Brunning" <[EMAIL PROTECTED]> wrote: > On 9/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I tried writing a true and false If statement and didn't get > > anything? I read some previous posts, but I must be missing > > something. I just tried something easy

Re: True of False

2007-09-27 Thread Shriphani
[EMAIL PROTECTED] wrote: > I tried writing a true and false If statement and didn't get > anything? I read some previous posts, but I must be missing > something. I just tried something easy: > > a = ["a", "b", "c", "d", "e", "f"] > > if "c" in a == True: > Print "Yes" > > When I run this,

Re: True of False

2007-09-27 Thread Marc 'BlackJack' Rintsch
On Thu, 27 Sep 2007 09:33:34 -0700, koutoo wrote: > I tried writing a true and false If statement and didn't get > anything? I read some previous posts, but I must be missing > something. I just tried something easy: > > a = ["a", "b", "c", "d", "e", "f"] > > if "c" in a == True: > Print

Re: True of False

2007-09-27 Thread skulka3
On Sep 27, 11:33 am, [EMAIL PROTECTED] wrote: > I tried writing a true and false If statement and didn't get > anything? I read some previous posts, but I must be missing > something. I just tried something easy: > > a = ["a", "b", "c", "d", "e", "f"] > > if "c" in a == True: > Print "Yes" >

Re: True of False

2007-09-27 Thread Simon Brunning
On 9/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I tried writing a true and false If statement and didn't get > anything? I read some previous posts, but I must be missing > something. I just tried something easy: > > a = ["a", "b", "c", "d", "e", "f"] > > if "c" in a == True: > Pr

True of False

2007-09-27 Thread koutoo
I tried writing a true and false If statement and didn't get anything? I read some previous posts, but I must be missing something. I just tried something easy: a = ["a", "b", "c", "d", "e", "f"] if "c" in a == True: Print "Yes" When I run this, it runs, but nothing prints. What am I doi