[Tutor] Boolean question
bob gailer
bgailer at gmail.com
Wed Mar 16 22:53:57 CET 2011
On 3/16/2011 4:26 PM, Donald Bedsole wrote:
> Hi Allen,
>
>> Boolean algebra can be a weird thing to get your head around
>> the first time you come across it :-)
> Yes, :-)
>
>> Here are some of the standard rules:
>>
>> True and thing = thing
>> False and thing = False
>> True or thing = True
>> False or thing = thing
>>
> Thanks for your response and for the rules, but for some reason I'm
> not understanding. In the above quote, what is meant by "thing"?
Thing in this context means 'anything". could be a string, number, list,
any Python object.
True and 1 = 1
True and 'a'= 'a'
etc.
--
Bob Gailer
919-636-4239
Chapel Hill NC
More information about the Tutor
mailing list