When does True == True

Seymore4Head Seymore4Head at Hotmail.invalid
Thu Aug 28 16:53:22 EDT 2014


On Thu, 28 Aug 2014 15:52:48 -0500, Andrew Berg
<aberg010 at my.hennepintech.edu> wrote:

>On 2014.08.28 15:38, Seymore4Head wrote:
>> What am I doing wrong?
>>>> True == True
>True
>>>> True == "True"
>False
>>>> type(True)
><class 'bool'>
>>>> type("True")
><class 'str'>
>
>Also, if is already a boolean test, and it is more Pythonic to simply write "if
>pigword.isalpha():".

I get it.
Thanks



More information about the Python-list mailing list