I was just fooling around in Python, and while I understand how the boolean logic works with 'True' or 'False'...I don't understand the results when you use other terms. For instance, if I type into Python:
"bear" and "dog"
"1 and 6"
"crab" or "food"
the output is:
'dog'
6
'crab'
Why? I didn't assign either of those variables to 'True' or 'False', so how does Python know which one to print out? How do you determine which is 'True', or which is 'False'?
Sorry if this is posted somewhere; I tried looking, but wasn't sure what the key terms were for this kind of question.