+ 1
This was just one of the challenge questions that sololearn gave me. Can anyone explain why the output is yes and not why?
3 Antworten
+ 7
sam lachance
a or b and c means
a or (b and c)
True or (False and False)
True or False
True
so output is Yes
+ 3
Read about operator precedence.
Also experiment changing the operators order and boolean values.
+ 3
sam lachance since a is True nothing to the right of the or is evaluated.