Try this
True
<type 'bool'>
False
Why is this? Now try
True
Can someone explain what is going on?
>>sample = {'t':True, 'f':False}
>>'t' in sample
>>'t' in sample
>>type('t' in sample)
>>'t' in sample == True
Why is this? Now try
>>bool('t' in sample) == True
Can someone explain what is going on?
Comment