+ 2

so python defaults to true?

so python, when given an opening defaults to true? (True or False)== True shouldn't it be some sort of quasi tralse

24th Jun 2016, 5:00 PM
Alexander Sousa
Alexander Sousa - avatar
3 ответов
0
first look after "OR" operator it works like "OR" operator "truth table"
24th Jun 2016, 7:01 PM
Tomal
Tomal - avatar
0
It's not a matter of defaulting, nor is it Python-specific. For example: If there's a club you can only get into IF you're famous OR you're rich then you can get in if you satisfy either condition, or both conditions. In a table: rich? famous? get in? ================ yes, yes, yes yes, no, yes no,yes, yes no, no, no Read yes as True and no as False...
18th Jul 2016, 2:14 PM
John Davies
- 1
Not defaults to be true. Instead, the operation result of (TRUE or FALSE) is TRUE. This is the definition of OR operation.
11th Jul 2016, 12:54 PM
df32
df32 - avatar